INSTALL_FAILED_MEDIA_UNAVAILABLE错误处理

简介:

问题描写叙述:

在android手机上安装apk的时候,报错例如以下:

Installation error: INSTALL_FAILED_MEDIA_UNAVAILABLE

Please check logcat output for more details.

Launch canceled!


上网搜了搜原因发现是某些应用程序(如360、91手机助手)造成手机无法在SD卡上安装程序

 

解决方法:

果断卸载这些垃圾软件,然后使用adb shell让手机自己选择安装在哪里,命令例如以下:

adb shell

pm set-install-location 0


不同的set-install-location说明:

pm set-install-location 0 由App自行决定软件是否能安装在SD卡

pm set-install-location 1 强制所有App安装在ROM内

pm set-install-location 2 强制所有App安装在SD卡







本文转自mfrbuaa博客园博客,原文链接:http://www.cnblogs.com/mfrbuaa/p/5091918.html,如需转载请自行联系原作者


相关文章
|
缓存 PHP
Composer 报错 Error while processing content unencoding: Unknown failure within ...
Composer 报错 Error while processing content unencoding: Unknown failure within ...
212 0
|
Android开发
XAMRAIN的INSTALL_FAILED_NO_MATCHING_ABIS错误处理
错误提示是:INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-11 解决方法: 打开xamarin .
1548 0
|
3月前
|
iOS开发 Perl
解決pod install报错:unable to access: LibreSSL SSL_read: error:Operation timed out, errno 60
解決pod install报错:unable to access: LibreSSL SSL_read: error:Operation timed out, errno 60
85 0
解决helm部署报错Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress
在使用helm install 或者helm upgrade的时候,如果出现了异常中断操作, 经常会出现UPGRADE FAILED并且导致后续无法更新,那我们该如何处理呢?
4815 0
|
Shell
遇到INSTALL_FAILED_VERIFICATION_FAILURE怎么办
遇到INSTALL_FAILED_VERIFICATION_FAILURE怎么办
1127 0
|
Android开发
解析Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]
解析Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]
431 0
解析Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]
The application could not be installed: INSTALL_FAILED_INSUFFICIENT_STORAGE
The application could not be installed: INSTALL_FAILED_INSUFFICIENT_STORAGE
553 0
The application could not be installed: INSTALL_FAILED_INSUFFICIENT_STORAGE
|
Android开发
Installation error: INSTALL_FAILED_CONFLICTING_PROVIDER 解决方案
Installation error: INSTALL_FAILED_CONFLICTING_PROVIDER 解决方案