Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CMD stuck on "Waiting for emulator..."

C:\hello>cordova emulate android Running command: C:\hello\platforms\android\cordova\run.bat --emulator ANDROID_HOME=C:\Users\user\AppData\Local\Android\sdk JAVA_HOME=C:\Program Files\Java\jdk1.7.0_10 WARNING : no emulator specified, defaulting to Nexus_5_API_22_x86 Waiting for emulator... 

It stays there for ever and does nothing.

like image 877
sleepless_in_seattle Avatar asked May 27 '15 18:05

sleepless_in_seattle


People also ask

Why does emulator take so long to start?

The Android Emulator is super slow as it is, but if you are not giving it enough memory it has the ability to never load. Show activity on this post. Google emulator uses ARM opcode, a kind of machine language. It must convert from ARM opcode to Intel opcode.

How do I run an emulator from command prompt?

Starting the emulator Use the emulator command to start the emulator, as an alternative to running your project or starting it through the AVD Manager. Here's the basic command-line syntax for starting a virtual device from a terminal prompt: emulator -avd avd_name [ {- option [ value ]} … ]

Why emulator is not opening?

If the Android Emulator does not start properly, this problem is often related to discovering that your application's minimum SDK is higher than your emulator SDK. If that's not the case, make sure you have HAXM installer on your SDK Manager.


1 Answers

I had the same problem. Though cordova started the emulator, the command line kept on saying 'Waiting for emulator...' forever.

The trick is, before running the command:

cordova run android 

make sure you navigate into the android platform folder. That is, don't run the command from within the

    /project folder 

but instead from within

    /project/platforms/android folder 

That will launch your application in the Android emulator

like image 150
Tomas Antos Avatar answered Sep 25 '22 18:09

Tomas Antos