Cordova build dev "No target specified and no devices found, deploying to emulator"
-
Hello,
suddenly while I was bulding, I got this error during the cordova build and now I can’t get the app to start on the emulator anymore… the weird thing is that it’s been working well until minutes ago!
BUILD SUCCESSFUL in 3s 42 actionable tasks: 3 executed, 39 up-to-date Built the following apk(s): D:\xxx\src-cordova\platforms\android\app\build\outputs\apk\debug\app-debug.apk Checking Java JDK and Android SDK versions ANDROID_SDK_ROOT=C:\Users\xxx\AppData\Local\Android\Sdk (recommended setting) ANDROID_HOME=C:\Users\xxx\AppData\Local\Android\Sdk (DEPRECATED) No target specified and no devices found, deploying to emulator ......
The dots keep increasing but nothing happens.
What I do is:
- start emulator through android studio or with this command:
C:\Users\xxx\AppData\Local\Android\Sdk\emulator\emulator.exe -avd "Nexus_6P"
- build app with this command:
quasar dev -m cordova -T android
I’m on Windows 10.
I don’t have any chrome debug window opened.
I’m stuck and cannot work.Any idea? Thanks!
PS: why ANDROID_HOME is DEPRECATED?
-
Hi,
you can try this :- turn off you emulator (cordova/quasar will open it for you)
- run this command : quasar dev -m cordova -T android --e emulator_name
-
PS: If you want to disapear the android_home is deprecated. You can just replace it by ANDROID_SDK_ROOT in your environnement variables.
-
@Florentin said in Cordova build dev "No target specified and no devices found, deploying to emulator":
Hi,
you can try this :- turn off you emulator (cordova/quasar will open it for you)
- run this command : quasar dev -m cordova -T android --e emulator_name
Hi @Florentin and thank you, unfortunately for me this never happens. I always must start the emulator manually.
I forgot to mention that I’ve already tried to explicitate the emulator:
quasar dev -m cordova -T android --e "Nexus_6P"
It says:
BUILD SUCCESSFUL in 15s 42 actionable tasks: 42 up-to-date Built the following apk(s): D:\Progetti\EG\invoicex\src-cordova\platforms\android\app\build\outputs\apk\debug\app-debug.apk Checking Java JDK and Android SDK versions ANDROID_SDK_ROOT=C:\Users\nulele\AppData\Local\Android\Sdk (recommended setting) ANDROID_HOME=C:\Users\nulele\AppData\Local\Android\Sdk (DEPRECATED) Waiting for emulator to start...
and nothing happens
-
@Florentin said in Cordova build dev "No target specified and no devices found, deploying to emulator":
PS: If you want to disapear the android_home is deprecated. You can just replace it by ANDROID_SDK_ROOT in your environnement variables.
But the path is the same…
ANDROID_SDK_ROOT=C:\Users\nulele\AppData\Local\Android\Sdk (recommended setting) ANDROID_HOME=C:\Users\nulele\AppData\Local\Android\Sdk (DEPRECATED)
-
@nulele you’ll get more answer if you googled since this is jot a quasar issue here https://stackoverflow.com/questions/28944494/warning-no-target-specified-deploying-to-emulator.
-
Well, somehow I managed to make quasar work with the emulator… maybe removing and recreating the avd did the trick… maybe reinstalling cordova package…
Anyway the emulator still doesn’t start automatically but it’s just a small annoyance.For the sake of completeness I found this issue on cordova github: https://github.com/apache/cordova-android/issues/698
We are not alone…