問題描述
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了。
