【问题标题】:Thread Suspened on LatLng call(google maps api v2)线程在 LatLng 调用中暂停(谷歌地图 api v2)
【发布时间】:2013-07-22 13:55:41
【问题描述】:
Thread [<1> main] (Suspended (exception RuntimeException))  
<VM does not provide monitor information>   
ActivityThread.performLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 2180    
ActivityThread.handleLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 2230 
ActivityThread.access$600(ActivityThread, ActivityThread$ActivityClientRecord, Intent) line: 141    
ActivityThread$H.handleMessage(Message) line: 1234  
ActivityThread$H(Handler).dispatchMessage(Message) line: 99 
Looper.loop() line: 137 
ActivityThread.main(String[]) line: 5041    
Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]  
Method.invoke(Object, Object...) line: 511  
ZygoteInit$MethodAndArgsCaller.run() line: 793  
ZygoteInit.main(String[]) line: 560 
NativeStart.main(String[]) line: not available [native method]  

编辑:好的,我解决了一些问题,现在我遇到了这个问题。这是什么意思?

【问题讨论】:

  • 我按照本教程 android-er.blogspot.com/2012/12/… 修复了一些问题,但现在我得到了一个不同的错误,所以如果你们想看看,我编辑了我的调用堆栈

标签: android noclassdeffounderror


【解决方案1】:

那是调用栈

以后,在您的 IDE 中按 Run 以继续越过异常点,这样您就可以在 LogCat 中获得更好的堆栈跟踪。

尝试了很多很多不同的解决方案,例如放置

&lt;uses-library&gt; 元素适用于 Maps V1。您正在使用地图 V2。

还将 google 地图库和 jar 添加到构建路径中。

Play Services SDK 是一个 Android 库项目。您应该将该项目的副本导入您的工作区,然后将其作为库项目添加到您的应用程序(项目 > 属性 > Android)。如果你做了除此之外的任何事情,你就会遇到问题。

另外,make sure that the "Order & Export" portion of your build path is set up properly,如果您使用的是 R22 或更高版本的 Eclipse 的 ADT 插件。

我的模拟器的目标是 google maps api lvl 17

据我所知,模拟器目前不支持 Maps V2。这不能解释你的崩溃,但是一旦你解决了当前的问题,你就会遇到其他问题。

【讨论】:

    猜你喜欢
    • 2013-01-21
    • 1970-01-01
    • 1970-01-01
    • 2013-04-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多