Android Emulator: Installation error: INSTALL_FAILED_VERSION_DOWNGRADE

后端 未结 15 1506
旧巷少年郎
旧巷少年郎 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:43

    According to sdk src code from ...\android-22\android\content\pm\PackageManager.java

    /**
     * Installation return code: this is passed to the {@link IPackageInstallObserver} by
     * {@link #installPackage(android.net.Uri, IPackageInstallObserver, int)} if
     * the new package has an older version code than the currently installed package.
     * @hide
     */
    public static final int INSTALL_FAILED_VERSION_DOWNGRADE = -25;
    

    if the new package has an older version code than the currently installed package.

提交回复
热议问题