无法显示谷歌地图的谷歌示例代码

时间:2013-06-03 09:45:13

标签: android android-maps

我遇到谷歌地图无法加载问题2周,但仍然在这里等待。

我导入到源代码并将google-play-services_lib添加到lib

SDK \额外\谷歌\ google_play_services \样品\地图 SDK \额外\谷歌\ google_play_services \ libproject \谷歌播放-services_lib

使用谷歌API 17和谷歌源代码,但模拟器不显示任何东西

http://dl2.iteye.com/upload/attachment/0085/3047/48240d53-5091-37c3-9cca-174feb6815c6.gif http://dl2.iteye.com/upload/attachment/0085/3049/79986c6a-acb6-39c9-abe4-c43ed27e8f2a.gif

日志

06-01 10:49:50.558: I/Choreographer(1955): Skipped 43 frames!  The application may be doing too much work on its main thread.
 06-01 10:49:50.808: I/Choreographer(1955): Skipped 314 frames!  The application may be doing too much work on its main thread.
 06-01 10:49:50.838: D/gralloc_goldfish(1955): Emulator without GPU emulation detected.
 06-01 10:49:51.078: I/Choreographer(1955): Skipped 136 frames!  The application may be doing too much work on its main thread.
 06-01 10:49:51.863: I/Choreographer(1955): Skipped 86 frames!  The application may be doing too much work on its main thread.
 06-01 10:50:09.360: I/Choreographer(1955): Skipped 232 frames!  The application may be doing too much work on its main thread.
 06-01 10:50:10.338: D/dalvikvm(1955): GC_CONCURRENT freed 125K, 10% free 2707K/2976K, paused 7ms+64ms, total 406ms
 06-01 10:50:14.528: D/dalvikvm(1955): GC_CONCURRENT freed 265K, 13% free 2829K/3236K, paused 76ms+6ms, total 414ms
 06-01 10:50:14.728: E/Google Maps Android API(1955): Google Maps Android API v2 only supports devices with OpenGL ES 2.0 and above
 06-01 10:50:15.848: D/dalvikvm(1955): GC_CONCURRENT freed 247K, 12% free 3015K/3404K, paused 71ms+82ms, total 244ms
 06-01 10:50:16.158: I/Choreographer(1955): Skipped 55 frames!  The application may be doing too much work on its main thread.
 06-01 10:50:16.648: D/libEGL(1955): Emulator without GPU support detected. Fallback to software renderer.
 06-01 10:50:16.658: D/libEGL(1955): loaded /system/lib/egl/libGLES_android.so 
06-01 10:50:16.848: I/Choreographer(1955): Skipped 718 frames!  The application may be doing too much work on its main thread.
 06-01 10:50:17.588: D/dalvikvm(1955): GC_FOR_ALLOC freed 257K, 14% free 3085K/3576K, paused 49ms, total 59ms

2 个答案:

答案 0 :(得分:0)

使用Android Map Api v2时,无法在Android模拟器上运行它;您必须使用设备进行测试。

follow this link

答案 1 :(得分:0)

使用您的手机而不是您的模拟器进行测试,因为错误是 “未检测到GPU支持的仿真器。回退到软件渲染器。” 它必须支持openGl 2.0或更高版本。