Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 623
Jijesh Avatar asked May 28 '15 09:05

Jijesh


2 Answers

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

like image 148
QuickFix Avatar answered Nov 03 '22 18:11

QuickFix


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..

like image 4
Saw Pyae Avatar answered Nov 03 '22 18:11

Saw Pyae