您的位置:首页 > 移动开发 > Android开发

[Android]解决小米手机神坑问题:Installation failed with message Failed to establish session

2017-12-19 14:46 579 查看
问题描述:小米手机可以从应用商城下载安装APK,但是用Android Studio编译安装就不行!出现这个错误:

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?

解决:

首先这个错误提示很容易让人误以为曾经安装过同样包名的app,可能因为签名证书不同,要你卸载后重新安装,

但是!!

但是!!

但是!!

小米手机这种狗屁的手机,如果初次安装都遇到这个问题,就不是上面说的原因!!

解决方法是:

关闭开发者选项中的MIUI优化并重启!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐