当前位置:   article > 正文

The application could not be installed: INSTALL_FAILED_USER_RESTRICTED错误排查_error running 'app': the application could not be

error running 'app': the application could not be installed: install_failed_

android studio 点击Run "app" 后给出如下错误

  1. Installation did not succeed.
  2. The application could not be installed: INSTALL_FAILED_USER_RESTRICTED
  3. List of apks:
  4. [0] 'E:\MyProject\xxx\app\build\outputs\apk\debug\xxxxx_.apk'
  5. Installation via USB is disabled.

排查步骤:

1、可能是开发者选项中,未开启USB安装,检查是否开启,再试下

2、有可能是AndroidManifest.xml的application标签中添加了

  1. android:appComponentFactory=""
  2. tools:replace="android:appComponentFactory"

删除此属性,重新试下。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/228441
推荐阅读
相关标签
  

闽ICP备14008679号