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]
?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
You can try and use
adb uninstall -k <package>
and then installing the older apk. From the adb usage guide:I've tried it myself with my apk, and it seems to work for most of the data (some data like RawContacts was not saved)
Did you enabled Multiple account on your device (and push your apk via ADB)? If so you have to remove the apk in every account. After complete uninstall, your push will be OK.
Try uninstalling previously installed version of app using-
and then install/run your app again
I also faced the same problem.It can be resolved with below steps which are easier than deleting any apk from the device -
1) Run command "adb logcat | grep -i version" on the terminal
2) Look for the particular line, which will be shown at the end of the logcat -
3) copy the current version( for eg 9109) and paste it in AndroidManifest.xml as shown below -
Now clean and rebuild the application and it should work fine.
In my case it was a stale version of Google Play Services included with my project. I am using Android Studio. I ran an update on the SDK, and imported the updated library, and that error went away. So my suggestion: update to the latest libraries that are referenced by your project.
You might have installed from a separate copy of the code where the version number was higher than the copy you’re working with right now. In either case, uninstall the currently installed copy, or open up Settings > Apps to determine the version number for the installed app, and increment your versionCode to be higher in the AndroidManifest.