Issue
I'm trying to launch emulator from intellij Terminal but it's keep giving error " PANIC ".
I also tried code mentioned below in my base class before test.
void laughEmulator() throws IOException {
try {
Runtime.getRuntime().exec("emulator @Demo");
System.out.println("start emulator");
Thread.sleep(5000);
} catch (Exception ex) {ex.printStackTrace();}
Help me to launch emulator from terminal and with my code too. i'm using intellij since week so not familiar with IDE.
Solution
actually new android sdk has
emulator.exe
in two folder in emulator folder and in tools folder.so first give path of emulator as mentioned below.
C:\Users\admin\AppData\Local\Android\Sdk\emulator C:\Users\admin\AppData\Local\Android\Sdk\emulator\bin
and than delete emulator.exe from tools folder.
then restart cmd and hit command emulator @emulator_name
Answered By - T.Che
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.