Android SDK - adb : Failure [INSTALL_FAILED_MEDIA_UNAVAILABLE]

Android SDK - adb : Failure [INSTALL_FAILED_MEDIA_UNAVAILABLE]

Test on: Mac OS X Yosemite
If you use "adb" command line for install apk file to "android simulator"



[Error]
Failure [INSTALL_FAILED_MEDIA_UNAVAILABLE]

[Solved]
1. close android simulator and terminal
2. run android simulator again then open terminal and type as follow and press enter.

*use your android sdk path
> cd /Applications/adt-bundle-mac-x86_64-20140702/sdk/platform-tools

3. check your simulator devices by type as follow and press enter.

> adb devices

4. if result on your terminal show as below that mean it can be found android simulator running.

> List of devices attached 
> emulator-5554 device

5. then install your apk file again by following command and press enter
*I paste apk file in platform-tools
> adb install SA_lite.apk

> 1844 KB/s (10217577 bytes in 5.411s)
> pkg: /data/local/tmp/SA_lite.apk
> Success
> rm failed for -f, Read-only file system

6. now your apk file was installed on android simulator.

It's work.

Comments