问题描述
当您尝试安装较低版本的 APK 时,似乎最新的 Android 4.2 在安装时引入了此错误情况.在之前的 Android 版本中,您可以通过 adb install -r
安装旧版 APK.出于调试目的,我经常需要重新测试旧版 APK;并且 -r
标志将替换旧版 Android 中的旧版本.这里是否有解决方法可以忽略 [INSTALL_FAILED_VERSION_DOWNGRADE]
?
It seems like the most recent Android 4.2 has introduced this error condition on installation when one attempts to install an APK with a lower version. In prior versions of Android, one would be able to install older APK's simply via adb install -r <link to APK>
. For debugging purposes, I frequently need to re-test older APK's; and the -r
flag would replace the older build in older Android versions. Is there a work-around here to ignore [INSTALL_FAILED_VERSION_DOWNGRADE]
?
推荐答案
似乎最新版本的 adb 工具有一个允许降级标志",该标志未显示在 adb 帮助中,但显示在pm" 设备上的帮助.所以使用:adb install -r -d
It appears the latest version of adb tools has an "allow downgrade flag" that isn't shown in the adb help, but it is shown in the "pm" help on the device. So use:adb install -r -d <link to apk>
这篇关于有什么方法可以在使用 Android Debug Bridge 安装应用程序时忽略 INSTALL_FAILED_VERSION_DOWNGRADE 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!