谷歌地图API崩溃(使用Android Emulator)
我一直在为我的应用程序使用谷歌地图API崩溃(使用Android Emulator),android,google-maps,google-maps-api-3,Android,Google Maps,Google Maps Api 3,我一直在为我的应用程序使用MapView,它一直运行良好。突然,当使用我的应用程序时,它崩溃了,出现以下错误 04-06 14:03:45.084 6969-7008/info.tommarsh.testmap E/EGL_emulation: rcCreateContext returned 0 04-06 14:03:45.084 6969-7008/info.tommarsh.testmap E/EGL_emulation: tid 7008: eglCreateContext(128
MapView
,它一直运行良好。突然,当使用我的应用程序时,它崩溃了,出现以下错误
04-06 14:03:45.084 6969-7008/info.tommarsh.testmap E/EGL_emulation: rcCreateContext returned 0
04-06 14:03:45.084 6969-7008/info.tommarsh.testmap E/EGL_emulation: tid 7008: eglCreateContext(1284): error 0x3003 (EGL_BAD_ALLOC)
04-06 14:03:45.085 6969-7008/info.tommarsh.testmap E/AndroidRuntime: FATAL EXCEPTION: GLThread 185
Process: info.tommarsh.testmap, PID: 6969
java.lang.RuntimeException: createContext failed: 12291
at com.google.maps.api.android.lib6.gmm6.vector.bi.a(:com.google.android.gms.DynamiteModulesB:834)
at com.google.maps.api.android.lib6.gmm6.vector.bj.f(:com.google.android.gms.DynamiteModulesB:20825)
at com.google.maps.api.android.lib6.gmm6.vector.bj.run(:com.google.android.gms.DynamiteModulesB:881)
现在,每次我输入使用MapView
的片段或活动时,都会发生完全相同的错误。需要注意的几件事:
- 我尝试过的每个模拟器(x86和x86_64 ABI)都会出现这种情况
- 在尝试启动
MapFragment
- 我使用的是地图版本10.2.1
感谢您的帮助 问题似乎出在仿真器图形上。在创建新的仿真器时,仿真性能中有一些选项。模拟性能有三个选项自动、硬件GLES或软件GLES 选择并查看结果。 -映射将稍微慢一点,但比出错要好 单击所附图片的链接,从中选择模拟性能
请发布整个Logcat错误,这样就可以正常工作了,谢谢!现在我必须弄清楚为什么硬件不能工作。。。