Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
谷歌地图API崩溃(使用Android Emulator)_Android_Google Maps_Google Maps Api 3 - Fatal编程技术网

谷歌地图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错误,这样就可以正常工作了,谢谢!现在我必须弄清楚为什么硬件不能工作。。。