首页 > 代码库 > Installation error: INSTALL_FAILED_MEDIA_UNAVAILAB

Installation error: INSTALL_FAILED_MEDIA_UNAVAILAB

报错如下:

[2012-06-21 12:56:17 - xmobile17] Installation error: INSTALL_FAILED_MEDIA_UNAVAILABLE

[2012-06-21 12:56:17 - xmobile17] Please check logcat output for more details.

[2012-06-21 12:56:18 - xmobile17] Launch canceled!



解决:

adb shell

pm set-install-location: changes the default install location.
  NOTE: this is only intended for debugging; using this can cause
  applications to break and other undersireable behavior.
    0 [auto]: Let system decide the best location
    1 [internal]: Install on internal device storage
    2 [external]: Install on external media
shell@android :/ $ pm set-install-location 1
pm set-install-location 1
shell@android :/ $


参考:http://blog.csdn.net/qhs1573/article/details/8201380

Installation error: INSTALL_FAILED_MEDIA_UNAVAILAB