Android:需要不可用的共享库com.google.android.maps;失败 [英] Android: requires unavailable shared library com.google.android.maps; failing

查看:173
本文介绍了Android:需要不可用的共享库com.google.android.maps;失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我在project \ properties \ android中设置项目构建目标.我使用Google API用7级和8级创建了AVD,将每个AVD仅设置了SD卡大小为4Gb,在清单文件中将SDK的最低版本设置为7,将目标SDK设置为8.没有成功.我删除所有AVD并重新创建它们.

First of all, I set the Project Build Target in project\properties\android. I created AVD with Level 7 and 8 with Google APIs, set each AVD only the SD card size 4Gb, set the min version of SDK to 7 the target SDK to 8 in Manifest file. Without success. I delete all AVD and recreate those.

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

After I reinstall Eclipse Rcp, Installed ADT in Eclipse, and Installed Android SDK, and create AVDs again.

我的GPS应用程序在没有Google API的情况下可以正常运行,在较早的版本中,我目前在MapView上实现了用于显示跟踪日志的视图.

My GPS application is worked fine without Google APIs, in the earlier version I currently implemented a view for display tracklog on MapView my app does not work.

DDMS从未显示过日食.

The DDMS did not show never the eclipse.

如何解决此错误?

[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错误日志:

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

推荐答案

检查您的Manifest.xml.就我而言:

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

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

我必须删除.

这篇关于Android:需要不可用的共享库com.google.android.maps;失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆