Today in the release of the 1.5.4 version of the test under the automation update when the company met a colleague Samsung phone installation failed, please see
The error message under Eclipse is as follows:
So Baidu can find the solution to any search
Install_failed_media_unavailable, the reason for this problem is that the Android app installation location is currently unavailable. And Android app installs the location has the handset ROM inside and sdcard two kinds. Install_failed_media_unavailable can occur because Android devices are not sdcard.
There are two ways to solve this problem:
1, androidmanifest.xml in the configuration
<manifest xmlns:android="Http://schemas.android.com/apk/res/android"
android:installlocation="Auto" ></mainfest>
2. Force modification of Device application default installation location
1. Connect the device (ensure the installation of the driver)
2. Enter adb shell mode (execute%sdk%/platform-tools/adb shell in cmd)
3, the implementation of PM Setinstalllocation
PS: There are 0, 1, 23 kinds of values.
Different setinstalllocation instructions:
PM Setinstalllocation 0 The app determines whether the software can be installed on the SD card
PM setinstalllocation 1 Force all apps to be installed in ROM
PM Setinstalllocation 2 Force all apps installed on SD card
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
APK installed Phone no SD card installation failed solution