Reputation: 363
My Cordova application is not launching through cordova run android
command after updating the android platform to Cordova Android 4.0.0.
The project built successfully and says LAUNCH SUCCESS, but the app is not getting installed.
I'm using GenyMotion as the Emulator.
Upvotes: 1
Views: 1427
Reputation: 3389
The CLI of Cordova was the reason for this issue. From this answer:
Find this line of code:
adb -s ' + resolvedTarget.target + ' install -r -d "' + apk_path + '"
and then remove -d
option in the following 2 files:
cordova run android
- platforms\android\cordova\lib\device.js - line 101, in Cordova 5.0.0 cordova emulate android
- platforms\android\cordova\lib\emulator.js - line 311, in Cordova 5.0.0Now you will see that the app does get installed on your device/emulator.
Upvotes: 1