Cordova emulator not starting

14,941

Solution 1

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.

Solution 2

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.

Share:
14,941

Related videos on Youtube

Mulgard
Author by

Mulgard

Updated on September 15, 2022

Comments

  • Mulgard
    Mulgard over 1 year

    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?

  • Mulgard
    Mulgard almost 9 years
    Everything is set up correctly and virtualization is supported on my pc. i guess i will just use my device to test everything instead of using the emulator.
  • YATO
    YATO over 6 years
    What do I have to install for me to emulate on android?