app运行不上解决办法by uninstalling an existing version of the apk if it is present, and then re-installing.

问题:It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.

WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?

如图

app运行不上解决办法by uninstalling an existing version of the apk if it is present, and then re-installing.
对于此问题,以前遇到过,这次又遇到了,所以写篇博客深刻记忆

翻译:

1 安装失败,消息未能完成会话:INSTALL_FAILED_TEST_ONLY:installPackageLI
2 可以通过卸载现有版本来解决此问题 -
3 警告:卸载将删除应用程序数据–
4 是否要卸载现有应用程序?

原因:Android 5.0上两个签名不一致的APP不能声明相同的permission。
见:这篇博客有详细讲解
第二篇

注:以上连篇博客,有详细的对Android Studio操作解决此问题,但是我的是小问题,在下面--------

旧版与新版冲突,的确之前这部手机有同样APP

解决办法:我们一般都是直接点击卸载,但是再次运行还会出现此错误。所以查看了以上两篇文章,没有解决自己得问题。最后打开重新开启开发者选项后发现了一项允许USB安装这一项没有选,勾上,运行-------successful

个人猜测是因为,android studio卸载手机app后,手机自动不允许android studio安装app,所以勾上允许USB安装,就可以运行

见图:
app运行不上解决办法by uninstalling an existing version of the apk if it is present, and then re-installing.
成功app运行不上解决办法by uninstalling an existing version of the apk if it is present, and then re-installing.