2017-04-06 98 views
4

我一直在使用MapView爲我的應用程序,它一直工作正常。突然間,用我的應用程序時墜毀,出現以下錯誤谷歌地圖API崩潰(使用Android模擬器)

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
  • 時,也發生

任何幫助表示讚賞!

+0

請張貼整個logcat的錯誤 –

回答

1

看起來問題在於仿真器圖形。在創建新仿真器時,仿真性能有一些選項。仿真性能有三個選項自動,硬件GLES軟件GLES

選擇軟件GLES並查看結果。 -map會稍微慢一些,但比有錯誤要好。

點擊附件圖片鏈接在哪裏可以選擇仿真性能

where to choose Emulated Performance

+1

這使得它的工作,謝謝!現在我必須弄清楚爲什麼硬件GLES不能正常工作...... – Tmarsh2