解决小米手机Android Studio安装app 报错的问题It is possible that this issue is resolved by uninstalling an existi
问题描述
Android Studio升级到2.3版本之后,小米手机MIUI8不能运行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?
解决方法
设置Android Studio 中Instant Run中的选项为不选中
- 根据以下路径,找到Instant Run中的选项
File —— Settings——Build,Execution,Deployment——Instant Run -
将Enable Instant Run to hot swap code/resource changes on deploy(default enabled)的选择框取消。
3.点击Apply,保存设置就OK了。
作者: 一点点征服
出处:http://www.cnblogs.com/ldq2016/
本文版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文链接,否则保留追究法律责任的权利