首先,我在project \ properties \ android中設置了Project Build Target。 我使用Google API創建了Level 7和8的AVD,並將每個AVD設置爲SD卡大小4Gb,將SDK的最小版本設置爲7,將目標SDK設置爲Manifest文件中的8。沒有成功。 我刪除所有AVD並重新創建它們。Android:需要不可用的共享庫com.google.android.maps;失敗
重新安裝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
參考:http://stackoverflow.com/questions/2283398/shared-library-missing-in-android – Stephenmjm 2012-08-07 14:58:29
@Stephenmjm是正確的,這是要走的路。 – santiagobasulto 2013-11-05 19:36:42