Android:需要不可用的共享库com.google.android.maps;失败

时间:2012-03-26 07:48:54

标签: google-maps shared-libraries android-mapview ddms

首先,我在project \ properties \ android中设置Project Build Target。 我使用Google API创建了7级和8级的AVD,将每个AVD设置为仅4G卡的SD卡,在Manifest文件中将目标SDK的最小版本设置为7到8。没有成功。 我删除所有AVD并重新创建它们。

在我重新安装Eclipse Rcp,在Eclipse中安装ADT和安装Android SDK之后,再次创建AVD。

我的GPS应用程序在没有Google API的情况下工作正常,在早期版本中,我目前在MapView上实现了一个显示轨迹记录的视图我的应用程序不起作用。

DDMS并没有表现出从未发生的日食。

如何解决此错误?

[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!

这是LogCat错误日志:

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

3 个答案:

答案 0 :(得分:13)

检查您的Manifest.xml。在我的情况下有:

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

我必须删除。

答案 1 :(得分:1)

在用于修复fixing missing shared library的真实设备上,某些roms上comp.google.android.map不存在。

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

@Nys

的所有学分

答案 2 :(得分:0)

当我从“application”元素中移出uses-library标签时,

我在调试模拟器上工作。

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

在发布模式下,它要求进入“应用程序”,不知道为什么。