Jijesh
Jijesh

Reputation: 327

Cordova : Unable to install apk after upgrading android to 5.1.1 Nexus 5

Unable to run apk on nexus 5 after upgrading to 5.1.1

Using Cordova: 5.0.0 Device : Nexus 5 Machine : MAC

BUILD SUCCESSFUL

Total time: 8.432 secs
Built the following apk(s):
    /Applications/XAMPP/xamppfiles/htdocs/android/kaljacobs/platforms/android/build/outputs/apk/android-debug.apk
Using apk: /Applications/XAMPP/xamppfiles/htdocs/android/kaljacobs/platforms/android/build/outputs/apk/android-debug.apk
Installing app on device...

/Applications/XAMPP/xamppfiles/htdocs/android/kaljacobs/platforms/android/cordova/node_modules/q/q.js:126
                    throw e;
                          ^
ERROR: Failed to launch application on device: ERROR: Failed to install apk to device:  pkg: /data/local/tmp/android-debug.apk
Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]

ERROR running one or more of the platforms: Error: /Applications/XAMPP/xamppfiles/htdocs/android/kaljacobs/platforms/android/cordova/run: Command failed with exit code 8
You may not have the required environment or OS to run this project

Upvotes: 29

Views: 15694

Answers (2)

Saw Pyae
Saw Pyae

Reputation: 269

Don't worry about that.for NEXUS 5.go to Settings>> apps>> search application.

enter image description here

enter image description here enter image description here

Well done..

Upvotes: 4

QuickFix
QuickFix

Reputation: 11721

I think you have this issue because the app is installed on your device with a different signature.

When you do cordova run android, the app is installed with a debug signature and maybe that signature changed when you changed target sdk or when you upgraded android.

The fix when you have INSTALL_FAILED_UPDATE_INCOMPATIBLE error is to first uninstall your app and then you should not have the issue any-more when launching cordova run android

Upvotes: 84

Related Questions