Android Real Machine Run error install_failed_media_unavailable

Source: Internet
Author: User


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.