我正在使用谷歌地图和面向地方的安卓项目,它在log-cat中显示错误,同时编译“缺少共享库”。我将所有必需的库jar文件导入到项目库文件夹中,但它仍然在log-cat中显示相同的错误,请任何人帮我解决此问题
02-14 20:44:39.920: D/AndroidRuntime(323): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
02-14 20:44:39.920: D/AndroidRuntime(323): CheckJNI is ON
02-14 20:44:40.069: D/AndroidRuntime(323): --- registering native functions ---
02-14 20:44:40.909: D/dalvikvm(230): GC_EXPLICIT freed 165 objects / 11720 bytes in 151ms
02-14 20:44:41.510: D/PackageParser(58): Scanning package: /data/app/vmdl40026.tmp
02-14 20:44:42.209: I/PackageManager(58): Removing non-system package:com.kodespider.parkon
02-14 20:44:42.209: I/ActivityManager(58): Force stopping package com.kodespider.parkon uid=10037
02-14 20:44:42.360: D/PackageManager(58): Scanning package com.kodespider.parkon
02-14 20:44:42.360: E/PackageManager(58): Package com.kodespider.parkon requires unavailable shared library com.google.android.maps; failing!
02-14 20:44:42.369: W/PackageManager(58): Package couldn't be installed in /data/app/com.kodespider.parkon-2.apk
02-14 20:44:42.369: D/PackageParser(58): Scanning package: /data/app/com.kodespider.parkon-1.apk
02-14 20:44:42.399: D/PackageManager(58): Scanning package com.kodespider.parkon
02-14 20:44:42.410: I/ActivityManager(58): Force stopping package com.kodespider.parkon uid=10037
答案 0 :(得分:2)
在创建项目时,您应该将构建目标设置为“Google API”,而不是“Android X.X”。