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.
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.
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 ]} … ]
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With