赞
踩
android studio 点击Run "app" 后给出如下错误
- Installation did not succeed.
- The application could not be installed: INSTALL_FAILED_USER_RESTRICTED
-
- List of apks:
- [0] 'E:\MyProject\xxx\app\build\outputs\apk\debug\xxxxx_.apk'
- Installation via USB is disabled.
1、可能是开发者选项中,未开启USB安装,检查是否开启,再试下
2、有可能是AndroidManifest.xml的application标签中添加了
- android:appComponentFactory=""
- tools:replace="android:appComponentFactory"
删除此属性,重新试下。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。