The shared library is missing in android.

02-18 00:02:08.432: ERROR/PackageManager(57): Package com.example.brown requires unavailable shared library com.google.android.maps; failing!

I got this exception in logcat.

Can anyone guide me?

+45
android android-mapview
Feb 17 '10 at 18:35
source share
8 answers

According to CommonsWare, your emulator is missing a library. Google Maps Library Documentation The overview page contains information on how to create the correct type of virtual device for the emulator. The bottom line is this:

Launch AVD Manager using the android command without any parameters. If you work in Eclipse / ADT, you can also access this tool from the window> Android SDK and AVD Manager.

  • Click the Create button to start creating a new AVD.
  • In the dialog box that appears, specify a name for the AVD and select the target image of the system that you want to use AVD. Select one of the Google API targets (Google Inc.) to select the version whose API level corresponds to the android: minSdkVersion attribute in the application manifest, as described above.
  • Configure other options and then click Create AVD.

Once you have finished creating AVD, you can start it from the AVD Manager user interface, or you can use the emulator command line interface. If you work in Eclipse, you can configure Run Configuration to run AVD and install your application on it.

For more information on AVD, see Android Virtual Devices on the Android Developers Site.

+65
Feb 18 2018-10-18T00
source share

This error occurred on my device and not on the AVD, like other answers. In my case, I was working on a Nexus S with a custom ROM that didn't have Google Maps installed.

I read elsewhere that the com.google.android.maps shared library comes with the ROM itself and is not part of the APK.

Therefore, the solution for me was to return to the spare ROM in which Google Maps was installed.

BTW, the header of this stream refers to an error detected in DDMS LogCat. The first error that most users will see (before checking LogCat) will be in the Eclipse console:

 Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY Please check logcat output for more details. 
+10
Jul 11 '11 at 9:50 a.m.
source share

I had a similar problem on a real device. After robbery googling I found this answer

fixing a missing shared library . It turns out that some custom roms lack the comp.google.android.map library, you need to install it manually.

  • download googleapps
  • extract two files
  • system /etc/permissions/com.google.android.maps.xml
  • system / structure / com.google.android.maps.jar
  • remount / system filesystem rw (mount -o rw, remount / system)
  • copy files to
  • make chmod 644 on them
  • reboot
+10
02 Feb '14 at 17:05
source share

Your emulator does not have a Google API. Create a new AVD containing the Google API, and this error should go away.

+8
Feb 17 2018-10-17
source share

Like jfritz42, ​​I got this error on a real device with a custom ROM (Cyanogenmod). The error was caused by the fact that I did not install the Google Apps package, as it contains many applications that just annoy me. However, there is a solution how to install the google.maps library without combining your system with 19 Google Apps in this package. Just download the package (zip file) and delete all .apk files from the system / application in this zip file. After that, you can install zip using the ROM manager or in recovery mode. Then you should have the image library installed on your system. After this, Google Apps applications (for example, the Maps application) can be installed separately.

+4
Aug 31 2018-11-11T00:
source share

In the case of a real device, try deleting from the manifest file:

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

+2
Apr 21 '13 at 8:46
source share

I experienced this error after AVD was configured correctly and working fine. AVD was still using the Google API, and I could see a link to the map library in Eclipse. The only way to find this is to remove the AVD and create a new one, as fiXedd recommended.

0
May 24 '11 at 20:29
source share

fiXedd (see above) is correct.

You can edit already created devices or create a new one. When you create or edit a device inside AVD Manager, instead of choosing this type of target version:

Android xxx - API Level x

Just use this view instead:

Google APIs (Google Inc.) - API Level x

0
Apr 04 2018-12-12T00:
source share



All Articles