天天看點

Android studio 調試問題記錄一、小米手機通過Android studio 的USB安裝不了app問題

一、小米手機通過Android studio 的USB安裝不了app問題

最近在用小米手機調試時連接配接usb後跑項目時一直安裝不了app,一直報

Installation failed with message null. 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?

的報錯,手動解除安裝手機上的應用,沒用,adb 指令解除安裝還是沒用......這時候就崩潰了,明明報錯資訊就是未解除安裝啊,而且我也已經解除安裝了,網上說的方法1;AS設定Instant Run 設了還是不行;方法2,手機管家--->權限管理--->usb安裝管理,把這個關閉掉,關了還是不行。

最後解決方法是:将開發者選項中的 “啟用MIUI優化”關閉,系統自動重新開機後,能順利用studio調試應用了。

繼續閱讀