04/13 17:28:51: Launching 'app' on Xiaomi Mi Note 2.
Installation did not succeed.
The application could not be installed: INSTALL_FAILED_USER_RESTRICTED
Installation via USB is disabled.
Retry

Installation did not succeed.解决方案之一

第一种可能:


几天没调试,怎么就安装不成功,没注意到最后面的提示:Installation via USB is disabled.(USB禁止安装)。

很奇怪,开发者模式里面是允许USB安装,为了便于调试设置是允许安装。打开一看竟然被关闭了。而恰恰疏忽了这最基本的原因,如果你也恰巧遇到。

Installation did not succeed.解决方案之一

还有一种可能:

 

系统现在越来越安全,有同applicationId 的应用或者 不同报名相似APP(是存在的)本地存储的资源以及更新APP的手机存储文件,可以把手机文件删除

还有手机上的app与我们现在安装的版本冲突 卸载手机上app重新安装(无非就是签名和没签名的debug版本),但不至Installation did not succeed.用下面的as自带 

Android studio 安装app的时候以下报错

  Installation did not succeed.
  The application could not be installed.
  Installation failed due to: 'UNKNOWN'

报错原因

  手机里没有卸载干净app(之前你可能是用Android studio 安装的debug版本)

解决办法

1.adb uninstall 包名

Installation did not succeed.解决方案之一

2.手机直接恢复出厂设置(代价太大不支持)

 

希望可以帮助到你。书到用时方恨少,纸上得来终觉浅。

分类:

技术点:

相关文章: