Android Emulator: Installation error: INSTALL_FAILED_VERSION_DOWNGRADE

后端 未结 15 1499
旧巷少年郎
旧巷少年郎 2020-12-12 11:16

I am currently trying to compile and test a small Android Application.

I am using Eclipse, and have SDK 4.2 (Api Level 17) installed. I\'ve set

<         


        
15条回答
  •  情歌与酒
    2020-12-12 11:26

    This was happening in my project because I was using an XML resource to set the version code.

    AndroidManifest.xml:
    android:versionCode="@integer/app_version_code"
    
    app.xml:
    64
    

    This wasn't a problem in prior versions of adb, however, as of platform-tools r16 this is no longer being resolved to the proper integer. You can either force the re-install using adb -r or avoid the issue entirely by using a literal in the manifest:

    android:versionCode="64"
    

提交回复
热议问题