我一直在使用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
的Fragment或Activity时都会发生完全相同的错误。需要注意以下几点:
- 这在我尝试过的每个模拟器上都会发生(x86和x86_64 ABI都包括)
- 尝试启动
MapFragment
时也会发生这种情况 - 我正在使用Maps版本10.2.1
非常感谢任何帮助!