Android_Install failed version downgrade
Solution 1
Just uninstall the application on your device first and then install the fresh one.
Solution 2
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
Solution 3
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.
Solution 4
just use this:
$ adb -e uninstall your.application.package.name
Solution 5
Apparently the versionCode
of your currently installed version of the application is greater than 2, thus resulting in a failed installation on the device.
Related videos on Youtube
user3503072
Updated on February 24, 2020Comments
-
user3503072 about 4 years
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?
-
user3503072 almost 10 yearsI made the version code to "105" however i got a dialog "Error, please restart application error code : 20 " on my device. I can't find error on Logcat. Do you have any idea with it? I have no clue.
-
Martin Zabel about 8 yearsPlease explain your solution.
-
andreszs over 7 yearsGreat, but exactly where is that versionCode to be found?
-
Ajay Takur over 7 years1)Programmatically by manifest file to increment versions. 2)Earlier versions in production go stackoverflow.com/questions/14470402/…
-
Bahadır Yıldırım about 7 yearsThis command executes an uninstall on a running emulator instance. This doesn't answer the question.
-
Willi Mentzel almost 7 yearsThis sped up my db migration testing by a factor of 2! Thank you
-
Roberto Rodriguez almost 7 yearsPerfect. You made my day. Thanks
-
Elliott Beach almost 7 yearsYou should drop the
-e
flag when not using an emulator. -
Steven Mark Ford about 6 yearsSometimes a device restart is also required after doing this.
-
xhienne almost 6 yearsSince Android 7 (Nougat), for security reasons,
adb install -d
no longer works unless the package is marked as debuggable. -
Osvel Alvarez Jacomino about 5 yearsThis will erase any configuration i have in my application. I preffer use
adb install -d -r your.apk
as said @kemuri.