Java – Unavailable Shared Library – INSTALL_FAILED_MISSING_SHARED_LIBRARY

Unavailable Shared Library – INSTALL_FAILED_MISSING_SHARED_LIBRARY… here is a solution to the problem.

Unavailable Shared Library – INSTALL_FAILED_MISSING_SHARED_LIBRARY

I’m taking over a project and trying to launch it in the Android emulator. I’m getting the following error in Logcat:

11-11 06:21:42.215: ERROR/PackageManager(58): Package com.android.xxx requires an unavailable shared library com.google.android.maps; failed!

Console display:

Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY

How do I make sure com.google.android.maps is included in my project?

Update:
The minimum SDK level I use in my androidmanifest.xml is 3:

</application>
    <uses-sdk android:minSdkVersion="3"/>

Solution

When creating a simulated device, make sure to select “Google API…” as the target. If you only select “Android…”, you won’t be able to use advanced APIs like map on the simulated device.

Related Problems and Solutions