Android_Install failed version downgrade

85,106

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.

Share:
85,106

Related videos on Youtube

user3503072
Author by

user3503072

Updated on February 24, 2020

Comments

  • user3503072
    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
    user3503072 almost 10 years
    I 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
    Martin Zabel about 8 years
    Please explain your solution.
  • andreszs
    andreszs over 7 years
    Great, but exactly where is that versionCode to be found?
  • Ajay Takur
    Ajay Takur over 7 years
    1)Programmatically by manifest file to increment versions. 2)Earlier versions in production go stackoverflow.com/questions/14470402/…
  • Bahadır Yıldırım
    Bahadır Yıldırım about 7 years
    This command executes an uninstall on a running emulator instance. This doesn't answer the question.
  • Willi Mentzel
    Willi Mentzel almost 7 years
    This sped up my db migration testing by a factor of 2! Thank you
  • Roberto Rodriguez
    Roberto Rodriguez almost 7 years
    Perfect. You made my day. Thanks
  • Elliott Beach
    Elliott Beach almost 7 years
    You should drop the -e flag when not using an emulator.
  • Steven Mark Ford
    Steven Mark Ford about 6 years
    Sometimes a device restart is also required after doing this.
  • xhienne
    xhienne almost 6 years
    Since Android 7 (Nougat), for security reasons, adb install -d no longer works unless the package is marked as debuggable.
  • Osvel Alvarez Jacomino
    Osvel Alvarez Jacomino about 5 years
    This will erase any configuration i have in my application. I preffer use adb install -d -r your.apk as said @kemuri.