Installation error: INSTALL_FAILED_MEDIA_UNAVAILABLE?

  1. Go to cmd
  2. cd to android sdk folder > platform tools
  3. Enter adb shell, now a # sign appears
  4. Enter pm set-install-location 1 and another # appears should work fine with you.

Note: The 1 in the pm command signifies that apps will install only on the internal storage. See pm command for more info.


Is your Phone connected via USB? if yes, the SDCard is not mounted. Try to connect your phone in another mode or copy your software apk onto the SDCard, disconnect it from the pc and run the installation. It should work then :-)

For example, my Motorola Defy supports the usb modes "mass storage mode" and "media server" mode. In mass storage mode, the sdcard is unmounted from the device, so you can access it from your pc.

The problem is the "preferExternal" command, which tells Eclipse to try the installation on SDCard. You can also try to erase the installLocation command to install it your app in internal storage.

Greetings!


It's can be because of low memory. For me problem solved when delete some unnecessary files and apps.