Android studio 安装应用出现 The application could not be installed: INSTALL_FAILED_USER_RESTRICTED 错误

发布时间 2023-07-11 11:06:56作者: 两小无猜

错误详情

Installation did not succeed.
The application could not be installed: INSTALL_FAILED_USER_RESTRICTED

List of apks:
[0] '/Users/topjoy/git/git/ZeusSDK/Android/ZeusSDK/app/build/outputs/apk/debug/app-debug.apk'
Installation via USB is disabled.
Retry
Failed to launch an application on all devices

错误分析

某天早上调试app的时候突然就发现无法安装了,adb uninstall之后也没用。

之后发现在USB安装管理中这个应用被禁掉了,打开就可以正常安装了。机型:MEIZU 20 Pro

设置位置:设置/隐私权限/USB安装管理