Android 解决小米手机Android Studio安装app 报错的问题It is possible that this issue is resolved by uninstalling an

【Android 解决小米手机Android Studio安装app 报错的问题It is possible that this issue is resolved by uninstalling an】敢说敢作敢为, 无怨无恨无悔。这篇文章主要讲述Android 解决小米手机Android Studio安装app 报错的问题It is possible that this issue is resolved by uninstalling an相关的知识,希望能为你提供帮助。
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 解决小米手机Android Studio安装app 报错的问题It is possible that this issue is resolved by uninstalling an

文章图片

解决方法 设置Android Studio 中Instant Run中的选项为不选中
  1. 根据以下路径,找到Instant Run中的选项 
    File — — Settings— — Build,Execution,Deployment— — Instant Run
  2. 将Enable Instant Run to hot swap code/resource changes on deploy(default enabled)的选择框取消。
Android 解决小米手机Android Studio安装app 报错的问题It is possible that this issue is resolved by uninstalling an

文章图片
  3.点击Apply,保存设置就OK了。   在手机的开发者模式中关闭MIUI优化进入到手机的开发者模式,在最下面有一个启用MIUI优化选项,关闭这个选项会提示重启手机,选择关闭并重启重新启动后,再次运行我们的程序,就可以在手机上运行了。

    推荐阅读