Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY

Tags:

android

"Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY

Please check logcat output for more details."

Problem is: There is no output at all in the LogCat output. Further this is not about some Google Maps library, which most questions here on SO are about[1]: I'm trying to make use of my own library project.

my main project has following namespace: net.microtrash.cutoutcam

my library project has following namespaces, which I have referenced in the main app's manifest file:

<uses-library android:name="net.microtrash.lib" />
<uses-library android:name="net.microtrash.lib.button" />
<uses-library android:name="net.microtrash.cutoutcam.lib" />

Any ideas, why this error might happen?

[1] INSTALL_FAILED_MISSING_SHARED_LIBRARY error in Android

like image 644
stoefln Avatar asked Dec 23 '11 21:12

stoefln


3 Answers

my library project has following namespaces, which I have referenced in the main app's manifest file:

Unless you built your own phone, or at least your own firmware, you do not have any of those libraries. You do not use <uses-library> for Android library projects.

like image 119
CommonsWare Avatar answered Nov 02 '22 17:11

CommonsWare


The only solution which I have discovered is that whenever non-compatible Emulator is used for running Maps related Application, this problem always occurs. Simple solution is to run application on Google API emulator.

like image 29
Ahmed S. Durrani Avatar answered Nov 02 '22 16:11

Ahmed S. Durrani


I removed the <uses-library> tag for google-play-services, but I had <uses-library> tag for google maps as follows :

<uses-library android:name="com.google.android.maps"/>

It worked. Most answers in Stackoverflow are with respect to Google-Maps v1. But I had this problem in Google-Maps-v2 and this trick fixed.

like image 1
user3167973 Avatar answered Nov 02 '22 17:11

user3167973