小米手机安装出错:It is possible that this issue is resolved by uninstalling an existing version of

使用AS3.0.1版本,手机是红米note2,安装测试AndroidTest,安装提示以下错误。

Installation failed with message Failed to establish session.
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?

解决办法如下:
https://www.jianshu.com/p/e248f19963fe
开始使用方法一,还是不行,接着用方法二。编译才通过。,把内容贴出来吧。
解决方式
方法一:
删除 project 下面的build文件夹;
删除 module 下面的build文件夹;
重新编译安装即可。
方法二【小米手机】
开发者选项;
关闭“启用MIUI优化”;
重启即可。

你可能感兴趣的:(Android基础)