'cordova run android' does not deploy the app to emulator
See original GitHub issueBug Report
Problem
‘cordova run android’ doesn’t deploy the app to the emulator. It just gets to a point that it loops over and over
What is expected to happen?
It should deploy and launch the app on the emulator
What does actually happen?
The output below is what I get using the --verbose option.
Information
`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)
Running command: adb devices
Command finished with error code 0: adb devices
No target specified and no devices found, deploying to emulator
Running command: adb devices
Command finished with error code 0: adb devices
Running command: adb devices
Command finished with error code 0: adb devices
Running adb shell command “cat /proc/cpuinfo” on target emulator-5554…
Running command: adb -s emulator-5554 shell cat /proc/cpuinfo
Command finished with error code 0: adb -s,emulator-5554,shell,cat,/proc/cpuinfo
Running adb shell command “ps” on target emulator-5554…
Running command: adb -s emulator-5554 shell ps
Command finished with error code 0: adb -s,emulator-5554,shell,ps
.Running adb shell command “ps” on target emulator-5554…
Running command: adb -s emulator-5554 shell ps
Command finished with error code 0: adb -s,emulator-5554,shell,ps
.Running adb shell command “ps” on target emulator-5554…
Running command: adb -s emulator-5554 shell ps
Command finished with error code 0: adb -s,emulator-5554,shell,ps
.Running adb shell command “ps” on target emulator-5554…
Running command: adb -s emulator-5554 shell ps
Command finished with error code 0: adb -s,emulator-5554,shell,ps
.Running adb shell command “ps” on target emulator-5554…
Running command: adb -s emulator-5554 shell ps
Command finished with error code 0: adb -s,emulator-5554,shell,ps`
As you can see, it is just looping and not doing anything.
The same project runs just fine on another machine.
It works like it should when I import the platforms/android folder to Android Studio and run the project.
Tried ‘adb logcat’, doesn’t show anything.
Command or Code
cordova run android --verbose
Environment, Platform, Device
OS: win32 Node: v10.14.2 npm: 6.5.0 Java JDK: installed 1.8.0 Android SDK: installed true Android target: installed android-29,android-28,android-27,android-26 Gradle: installed C:\Gradle\bin\gradle Cordova; 9.0.0
Checklist
- I searched for existing GitHub issues
- I updated all Cordova tooling to most recent version
- I included all the necessary information above
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
Apologies for bailing, it was getting late for me last night. Glad you found your solution though!
Wow, that was fast. cordova platform list: `Installed platforms:
android 8.1.0
Available platforms:
browser ^6.0.0
electron ^1.0.0
ios ^5.0.0
osx ^5.0.0
windows ^7.0.0` Running on cordova-android@8.1.0.