Failed to start Cordova emulator
I am trying to use an android emulator to install an application on it.
Unfortunately, the emulator never starts up. I am using the following commands in my cordova project:
cordova emulate android
The last output I get from the console is:
Waiting for emulator...
But the emulator never starts (I waited 45 minutes).
All path variables are set correctly and I can start the emulator using Eclipse studio or Android, but not using the command from cordova.
Any hints?
source to share
Check emulator path settings https://cordova.apache.org/docs/en/4.0.0/guide_platforms_android_index.md.html If this cannot be done, do: use alternative shell interface:
$ /path/to/project/cordova/run --emulator
Instead of relying on which emulator is currently included in the SDK, you can reference each one by the names you specify:
$ /path/to/project/cordova/run --target=NAME
Check the above documentation and see if your computer supports virtualization or not.
source to share
I had the same problem. Although cordova launched the emulator, the command line kept saying "Waiting for emulator ..." forever.
Trick before running the command:
Cordova launches android make sure you navigate to android platform folder. That is, do not run the command from
/project folder
but instead inside
/project/platforms/android folder
This will launch your application in the Android emulator
source to share