title: How to open emulator in intellij?
body: <p>I'm trying to launch emulator from intellij Terminal but it's keep giving error " PANIC ".</p>
  
  <p>I also tried code mentioned below in my base class before test.</p>
  
  <pre><code> void laughEmulator() throws IOException {
  
          try {
              Runtime.getRuntime().exec("emulator @Demo");
              System.out.println("start emulator");
              Thread.sleep(5000);
          } catch (Exception ex) {ex.printStackTrace();}
  </code></pre>
  
  <p>Help me to launch emulator from terminal and with my code too.
  i'm using intellij since week so not familiar with IDE.</p>