Android apk install: How to clear files from old version?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 17:55:27

Just before re-installing your application

adb install -r myapp-release.apk

You have 2 options:
First one is to uninstall your application before installing the new version.

adb uninstall com.your.package

Second one is to clear application data before installing the new version.

adb shell pm clear com.your.package

You could do it manually on your android phone by going to Settings > Applications > [your_app]. Then you can "clear saved data" or something like this.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!