android地图应用程序未在模拟器上运行

时间:2013-06-24 07:02:48

标签: android map

我已在Android中开发了Android地图应用程序,并希望在Google Play上启动它。 问题是当我尝试在模拟器上运行它时它在控制台中显示此错误

[2013-06-24 10:14:18 - Track] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY
[2013-06-24 10:14:18 - Track] Please check logcat output for more details.
[2013-06-24 10:14:18 - Track] Launch canceled!

请任何人帮助我在模拟器上测试它并告诉我我究竟错过了什么或者是否还有其他问题。谢谢你提前

更新

Log Cat

06-24 14:43:12.462: D/dalvikvm(380): GC_CONCURRENT freed 376K, 48% free 3039K/5831K, external 716K/1038K, paused 5ms+5ms
06-24 14:43:16.303: D/dalvikvm(380): GC_CONCURRENT freed 578K, 50% free 3020K/6023K, external 716K/1038K, paused 5ms+49ms
06-24 14:43:16.863: D/dalvikvm(380): GC_CONCURRENT freed 298K, 47% free 3234K/6023K, external 716K/1038K, paused 5ms+7ms
06-24 14:43:17.193: D/dalvikvm(380): GC_CONCURRENT freed 468K, 47% free 3318K/6215K, external 716K/1038K, paused 5ms+32ms
06-24 14:43:17.643: D/dalvikvm(380): GC_CONCURRENT freed 432K, 46% free 3417K/6279K, external 717K/1038K, paused 5ms+6ms
06-24 14:43:37.943: E/log_tag(380): Error in http connectionjava.net.UnknownHostException: sml.com.pk
06-24 14:43:37.943: E/log_tag(380): Error converting result java.lang.NullPointerException
06-24 14:43:37.963: D/AndroidRuntime(380): Shutting down VM
06-24 14:43:37.974: W/dalvikvm(380): threadid=1: thread exiting with uncaught exception (group=0x40015560)
06-24 14:43:37.982: E/AndroidRuntime(380): FATAL EXCEPTION: main
06-24 14:43:37.982: E/AndroidRuntime(380): java.lang.RuntimeException: Unable to start activity ComponentInfo{map2.pkg.pkg/map2.pkg.pkg.GMapsActivity}: java.lang.NullPointerException
06-24 14:43:37.982: E/AndroidRuntime(380):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
06-24 14:43:37.982: E/AndroidRuntime(380):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
06-24 14:43:37.982: E/AndroidRuntime(380):  at android.app.ActivityThread.access$1500(ActivityThread.java:117)
06-24 14:43:37.982: E/AndroidRuntime(380):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
06-24 14:43:37.982: E/AndroidRuntime(380):  at android.os.Handler.dispatchMessage(Handler.java:99)
06-24 14:43:37.982: E/AndroidRuntime(380):  at android.os.Looper.loop(Looper.java:130)
06-24 14:43:37.982: E/AndroidRuntime(380):  at android.app.ActivityThread.main(ActivityThread.java:3683)
06-24 14:43:37.982: E/AndroidRuntime(380):  at java.lang.reflect.Method.invokeNative(Native Method)
06-24 14:43:37.982: E/AndroidRuntime(380):  at java.lang.reflect.Method.invoke(Method.java:507)
06-24 14:43:37.982: E/AndroidRuntime(380):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
06-24 14:43:37.982: E/AndroidRuntime(380):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
06-24 14:43:37.982: E/AndroidRuntime(380):  at dalvik.system.NativeStart.main(Native Method)
06-24 14:43:37.982: E/AndroidRuntime(380): Caused by: java.lang.NullPointerException
06-24 14:43:37.982: E/AndroidRuntime(380):  at org.json.JSONTokener.nextCleanInternal(JSONTokener.java:112)
06-24 14:43:37.982: E/AndroidRuntime(380):  at org.json.JSONTokener.nextValue(JSONTokener.java:90)
06-24 14:43:37.982: E/AndroidRuntime(380):  at org.json.JSONArray.<init>(JSONArray.java:87)
06-24 14:43:37.982: E/AndroidRuntime(380):  at org.json.JSONArray.<init>(JSONArray.java:103)
06-24 14:43:37.982: E/AndroidRuntime(380):  at map2.pkg.pkg.GMapsActivity.onCreate(GMapsActivity.java:112)
06-24 14:43:37.982: E/AndroidRuntime(380):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
06-24 14:43:37.982: E/AndroidRuntime(380):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
06-24 14:43:37.982: E/AndroidRuntime(380):  ... 11 more
06-24 14:44:28.792: I/Process(380): Sending signal. PID: 380 SIG: 9

先生,我已经创建了模拟器作为谷歌公司,但现在再次得到错误高于日志猫/

2 个答案:

答案 0 :(得分:1)

  

1)安装Google地图API。这可以在Eclispe中完成   Windows / Android SDK和AVD Manager - &gt;可用套餐 - &gt;第三   派对附加组件 - &gt; Google Inc. - &gt; Google Inc.,Android的Google API   API X

     

2)从命令行创建新的AVD。这可以通过列表来完成   目标(android列表目标),然后android创建avd -n   new_avd_api_233 -t“Google Inc.:Google API:X”

     

3)然后在Eclipse Windows / Android SDK和AVD Manager中创建AVD - &gt;   新... - &gt; (名称:new_avd_X,目标:Google API(Google Inc.) - API   等级X)

     

4)在Eclipse File / New / Android Project中创建Android项目   选择Google API Build Target。

     

5)之间添加     标签

     

5)将Project作为Android应用程序运行。

答案 1 :(得分:0)

  

如果你正在安装apk到Android模拟器中并看到这个   错误(INSTALL_FAILED_MISSING_SHARED_LIBRARY),可能意味着   app依赖于Google API(例如Google地图和其他API)   谷歌Android应用程序)和您正在运行的AVD已创建   没有Google API。

     

使用Google API之一从AVD Manager创建新的AVD   您需要的API级别的目标,你应该很高兴。