Android Studio 在小米手机上成功运行

错误信息如下:

Installation failed with message INSTALL_FAILED_USER_RESTRICTED.

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?

INSTALL_FAILED_USER_RESTRICTED: 手机系统中有应用阻止了安装

 

解决方案:

    (1)打开开发者模式;

    (2)在手机开发者选项打开“usb安装”;

    (3)在手机的开发者模式中关闭MIUI优化。

你可能感兴趣的:(Android)