AvenashKrish
AvenashKrish

Reputation: 363

Cordova application not launching after updating to Cordova Android 4.0.0

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

Answers (1)

Keval
Keval

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:

  1. For cordova run android - platforms\android\cordova\lib\device.js - line 101, in Cordova 5.0.0
  2. For cordova emulate android - platforms\android\cordova\lib\emulator.js - line 311, in Cordova 5.0.0

Now you will see that the app does get installed on your device/emulator.

Upvotes: 1

Related Questions