Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android_Install failed version downgrade

I'm going to update my apk on GooglePlay Store and I know that i have to upgrade the version code and name in manifest file however, it made install_failed.

Installation error: INSTALL_FAILED_VERSION_DOWNGRADE 

Please check logcat output for more details. Launch canceled!

I modified the version code and name like this: android:versionCode="2" android:versionName="1.0.5"

Did i make it wrong?

like image 963
user3503072 Avatar asked Jul 03 '14 07:07

user3503072


3 Answers

Just uninstall the application on your device first and then install the fresh one.

like image 141
Martin Avatar answered Oct 17 '22 08:10

Martin


When you are installing via adb you can pass -d to allow version downgrade

adb install -d -r your.apk

-r will also replace the existing app

like image 35
kemuri Avatar answered Oct 17 '22 09:10

kemuri


Installation error: INSTALL_FAILED_VERSION_DOWNGRADE Please check logcat output for more details. Launch canceled!

I solved it by using the command prompt,navigating to project folder >adb uninstall package (you can get the package from Manifest.xml file).

In my case : D:\projectFolder\AndriodApp>adb uninstall com.example.app

Again launch the App in emulator or mobile.

like image 9
Satyapira Pradhan Avatar answered Oct 17 '22 07:10

Satyapira Pradhan