I want to start the emulator to test my project. I created three AVD's named Nexus
, Xperia
, and Grand
. Then, in the Node Js I entered the command cordova run android --emulator
. After build successful its shows this message. WARNING : no emulator specified, defaulting to Grand
. And then emulator starts with Grand.
My question is how I can set the default AVD name? Like, now I want to set the Xperia or Nexus to be default. I know it should be some simple thing to do, but I tried to search many posts even cant find the correct answer for my question.
cordova "run" - will try to run it on a real device, if it's not found it fallback to "emulator" and it chooses the default because you didn't specified anything else.
Maybe you can still pass it the "--target" flag and it will fallback to the specified emulator name you created.
cordova run --target=name_of_your_emulator android
Or if you're intending to test on an emulator, then use the "emulate" instead of "run" option
cordova emulate --target=name_of_your_emulator android
I had the same problem with 'WARNING : no emulator specified'. For everyone that need more help with this issue. Make sure you do following things:
There are some things I did for troubleshooting:
I hope that helps someone!
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