INSTALL_FAILED_MISSING_SHARED_LIBRARY error in Android
When I am trying to run an android application which uses Google API I get the following error
[2009-07-11 11:46:43 - FirstMapView] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY
[2009-07-11 11:46:43 - FirstMapView] Please check logcat output for more details.
[2009-07-11 11:46:44 - FirstMapView] Launch canceled!
Can anyone help me solve this error?
To get past INSTALL_FAILED_MISSING_SHARED_LIBRARY
error with Google Maps for Android:
Install Google map APIs. This can be done in Eclipse Windows/Android SDK and AVD Manager -> Available Packages -> Third Party Add-ons -> Google Inc. -> Google APIs by Google Inc., Android API X
From command line create new AVD. This can be done by listing targets (android list targets), then android create avd -n new_avd_api_233 -t "Google Inc.:Google APIs:X"
-
Then create AVD (Android Virtual Device) in Eclipse Windows/Android SDK and AVD Manager -> New... -> (Name: new_avd_X, Target: Google APIs (Google Inc.) - API Level X)
IMPORTANT
: You must create your AVD with Target as Google APIs (Google Inc.) otherwise it will again failed. Create Android Project in Eclipse File/New/Android Project and select Google APIs Build Target.
add <uses-library android:name="com.google.android.maps" /> between <application> </application> tags.
Run Project as Android Application.
If error persists, then you still have problems, if it works, then this error is forever behind you.
In my case, it was that the app had defaulted to a Wearable target device.
I removed the reference to Wearable in my Manifest, and the problem was solved.
<uses-library android:name="com.google.android.wearable" android:required="true" />
<uses-library
android:name="com.google.android.maps"
android:required="false" />
if required is true, maybe you need to change
You can solve it be running on Google API emulator.
To run on Google API emulator, open your Android SDK & AVD Manager > Available packages > Google Repos > select those Google API levels that you need to test on.
After installing them, add them as virtual device and run.
- Open eclipse
-
Goto:
project>Properties>Android> select: google APIs Android 4.0.3
-
Click Icon:
Android Virtual Device Manager>Edit> Slect box in Tabget>Google APIs APIsLevel15
and select Built-in: is WQVGA400 > Edit AVD > Start