小米系列真機除錯程式碼時遇到小米系列手機除錯Installation failed with message Failed to establish session

neuHenry發表於2017-08-29

問題:
  Android Studio 2.3版本中使用小米手機除錯程式碼時,出現下面的問題,導致安裝apk失敗,筆者是小米4;
  應用程式安裝失敗資訊如下:

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.

應用程式安裝失敗提示框如下:

這裡寫圖片描述

解決如下:

到開發者選項中,拉到最底部找到啟用MIUI優化,關閉這個選項即可;

這裡寫圖片描述

參考:http://blog.csdn.net/furzoom/article/details/61200249

相關文章