Android App install error: install_failed_media_unavailable solution

Source: Internet
Author: User

Today, in the test of a machine, Hisense's mobile phone, installation of their products are not loaded up, and then found on the Internet a lot of methods, now tidy up:

Method One:

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.

Workaround:

At androidmanifest.xml start tag add android:installlocation= "Auto", fix to

<?xml version= "1.0" encoding= "Utf-8"?>
<manifest xmlns:android= "Http://schemas.android.com/apk/res/android"
android:installlocation= "Auto" >

This configuration allows the Android system to determine the installation location of the application itself.

Method Two:

Problem Description:

Use the Eclipse compiler to run on your Android phone with the following error:

Installation error:install_failed_media_unavailable

Please check the Logcat output for more details.

Launch canceled!

Solution:

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

(win7 cmd switch directory can not refer to the Win7 system cmd command to switch to the specified folder directory )

2. The CD command changes the directory directly to the Platform-tools directory, such as the directory where I downloaded the SDK file:

G:\Feitianxinhong\Android\adt-bundle-windows-x86\sdk\platform-tools

3. Enter adb shell command

4. Enter pm setinstalllocation 0 command

Android App install error: install_failed_media_unavailable solution

Related Article

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.