1. 程式人生 > >Android Studio除錯DELETE_FAILED_INTERNAL_ERROR錯誤

Android Studio除錯DELETE_FAILED_INTERNAL_ERROR錯誤

安裝期間報錯:

Installation failed with message Failed to finalize session : INSTALL_FAILED_USER_RESTRICTED: Install canceled by user.
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?

報錯分析:是手機原來安裝了另外的版本。確定後刪除,依然報同樣的錯誤。做如下設定,解決。

如題,解決方案
1,進入開發者模式,到最下面把MIUI優化關閉,重啟手機

2,開啟USB除錯

3,開啟USB安裝,該功能需要登入小米賬號