Problem description
At this stage, it is the sample program memory optimization test. Have installed a lot of programs on the phone, suddenly encountered the following problems:
Using eclipse to compile successfully, will be placed on the Android phone to run, but the error is as follows:
Installation error:install_failed_media_unavailable
Please check the Logcat output for more details.
Launch canceled!
Find a way to search the Web.
Solutions
Use the ADB shell command to let your phone choose where to install it. The command is as follows:
ADB shell
PM Setinstalllocation 0
Note: The different setinstalllocation description:
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
Operation Steps
1, Win+r shortcut key open the Run window (or Start menu, directly in the Search program or file box) directly enter the cmd command.
2. The CD command changes the directory directly to the Platform-tools directory, such as the directory where I downloaded the SDK file:
C:\android-sdk_r08-windows\android-sdk-windows\platform-tools
3, enter the adb Shell command, return.
4, then, then enter the pm setinstalllocation 0 command, enter.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/49/E8/wKioL1Qemj6zpE05AAIXxHMV-1E016.jpg "title=" Untitled. jpg "alt=" wkiol1qemj6zpe05aaixxhmv-1e016.jpg "/>
After that, run the program again and test normally.
This article is from the "Green Peak" blog, please make sure to keep this source http://zhuxianzhong.blog.51cto.com/157061/1556714
Android Real Machine Run error install_failed_media_unavailable