Android: requires an inaccessible shared library com.google.android.maps; failure

First of all, I install Project Build Target in project \ properties \ android. I created AVDs from level 7 and 8 with the Google APIs, set each AVD to only 4Gb SD card size, set the minimum SDK version in 7 target SDKs to 8 in the manifest file. To no avail. I delete all the AVDs and recreate them.

After I reinstall Eclipse Rcp, Install ADT in Eclipse and Install Android SDK, and create AVD again.

My GPS application works fine without the Google APIs, in an earlier version I currently implemented a track tracking view on MapView, my application does not work.

DDMS never showed an eclipse.

How can I solve this error?

[2012-03-26 09:27:50 - GPS] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY [2012-03-26 09:27:50 - GPS] Please check logcat output for more details. [2012-03-26 09:27:51 - GPS] Launch canceled! 

Here is the LogCat error log:

 03-26 07:26:22.220: E/vold(27): Error opening switch name path '/sys/class/switch/test' (No such file or directory) 03-26 07:26:22.220: E/vold(27): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory) 03-26 07:26:22.220: E/vold(27): Error opening switch name path '/sys/class/switch/test2' (No such file or directory) 03-26 07:26:22.220: E/vold(27): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory) 03-26 07:27:03.399: E/BatteryService(66): usbOnlinePath not found 03-26 07:27:03.399: E/BatteryService(66): batteryVoltagePath not found 03-26 07:27:03.399: E/BatteryService(66): batteryTemperaturePath not found 03-26 07:27:03.420: E/SurfaceFlinger(66): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake 03-26 07:27:27.730: E/EventHub(66): could not get driver version for /dev/input/mouse0, Not a typewriter 03-26 07:27:27.730: E/EventHub(66): could not get driver version for /dev/input/mice, Not a typewriter 03-26 07:27:28.440: E/System(66): Failure starting core service 03-26 07:27:28.440: E/System(66): java.lang.SecurityException 03-26 07:27:28.440: E/System(66): at android.os.BinderProxy.transact(Native Method) 03-26 07:27:28.440: E/System(66): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146) 03-26 07:27:28.440: E/System(66): at android.os.ServiceManager.addService(ServiceManager.java:72) 03-26 07:27:28.440: E/System(66): at com.android.server.ServerThread.run(SystemServer.java:176) 03-26 07:27:28.440: E/AndroidRuntime(66): Crash logging skipped, no checkin service 03-26 07:27:39.779: E/ActivityThread(120): Failed to find provider info for android.server.checkin 03-26 07:27:41.341: E/ActivityThread(120): Failed to find provider info for android.server.checkin 03-26 07:27:41.530: E/ActivityThread(120): Failed to find provider info for android.server.checkin 03-26 07:27:42.060: E/ActivityThread(120): Failed to find provider info for android.server.checkin 03-26 07:27:42.140: E/ActivityThread(120): Failed to find provider info for android.server.checkin 03-26 07:27:49.890: E/PackageManager(66): Package com.lkv.mobile.apps.gps requires unavailable shared library com.google.android.maps; failing! 03-26 07:27:50.331: E/AndroidRuntime(163): ERROR: thread attach failed 
+4
source share
3 answers

Check your Manifest.xml. In my case it was:

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

which I had to remove.

+10
source

On a real device, there is no comp.google.android.map to fix fixing missing shared library on some roms.

 download googleapps extract two files system/etc/permissions/com.google.android.maps.xml system/framework/com.google.android.maps.jar remount the /system filesystem rw (mount -o rw,remount /system) copy the files in do a chmod 644 on them reboot 

All @Nys Credits

+1
source

my WORKED on the emulator in debugging when I move the use-library tag from the "application" element.

 uses-library android:name=com.google.android.maps 

In release mode, he asks to enter the "application", I do not know why.

0
source

Source: https://habr.com/ru/post/1403413/


All Articles