Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova emulator not starting

I am trying to use the Android emulator to install an app on it.

Unfortunately the emulator is never starting up. I use the following command in my cordova project:

cordova emulate android

The last output I get from console is:

Waiting for emulator...

But the emulator does never start (I waited 45 minutes now).

The path variables are all correctly set and I can start the emulator using Eclipse or Android studio but not using the command from cordova.

Any hints?

like image 588
Mulgard Avatar asked Apr 29 '15 08:04

Mulgard


2 Answers

If you can start the emulator through android studio, then as a work around start the emulator outside and run the command

cordova run android

It will deploy your app in the already running emulator.

like image 108
paje007 Avatar answered Nov 02 '22 04:11

paje007


Check emulator path settings https://cordova.apache.org/docs/en/4.0.0/guide_platforms_android_index.md.html If not able to execute then do : use the alternate shell interface:

$ /path/to/project/cordova/run --emulator

Instead of relying on whichever emulator is currently enabled within the SDK, you can refer to each by the names you supply:

$ /path/to/project/cordova/run --target=NAME

Check the documentation above and see whether your PC supports virtualization or not.

like image 1
ninja.stop Avatar answered Nov 02 '22 05:11

ninja.stop