我正在尝试在带有Google API的Android模拟器API 25上启动默认的Google Maps Activity,但是我遇到了以下错误:
Initialized EGL, version 1.4
04-15 11:30:25.043 3888-3937/dk.pawliux.app.mapstest D/OpenGLRenderer: Swap behavior 1
04-15 11:30:25.096 3888-3933/dk.pawliux.app.mapstest E/EGL_emulation: rcCreateContext returned 0
04-15 11:30:25.097 3888-3933/dk.pawliux.app.mapstest E/EGL_emulation: tid 3933: eglCreateContext(1284): error 0x3003 (EGL_BAD_ALLOC)
04-15 11:30:25.097 3888-3933/dk.pawliux.app.mapstest E/AndroidRuntime: FATAL EXCEPTION: GLThread 194
Process: dk.pawliux.app.mapstest, PID: 3888
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)
我在合并后的清单文件中看到了以下内容:
<uses-feature android:glEsVersion="0x00020000" android:required="true"/>
这是不是意味着我正在尝试启动一个使用比我的模拟器/显卡支持更高的EGL版本的应用程序?我正在使用启用了HAXM的Intel HD Graphics 3000。
我已经尝试过在许多其他带有Google APIs的API上启动,但仍然遇到相同的问题。即使我的测试应用程序无法启动,但内置的Google Maps应用程序可以在模拟器上启动并正常工作。
有没有办法解决我的问题?
该应用程序在真实设备上运行良好。
提前感谢。