INSTALL_FAILED_MEDIA_UNAVAILABLE

问题描述:

使用eclipse编译程序,在android手机上运行,报错如下:

Installation error: INSTALL_FAILED_MEDIA_UNAVAILABLE

Please check logcat output for more details.

Launch canceled!

解决方案:

使用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卡

posted @ 2013-12-11 13:59  Liu Siyuan  阅读(624)  评论(0)    收藏  举报