java.lang.RuntimeException:createContext 失败:EGL_SUCCESS Arcgis Android

java.lang.RuntimeException: createContext failed: EGL_SUCCESS Arcgis Android

当我启动具有 Arcgis MapView 的 activity 时,该应用程序一直崩溃,但在特定设备(例如 Letv Le X509 设备或小米设备)上崩溃。 我得到的日志在下面提到。设备 OS 版本为 6.0。

我的 ArcGIS SDK 版本是 100.3.0

致命异常:java.lang.RuntimeException:createContext 失败:EGL_SUCCESS 在 android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1233) 在 android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1224) 在 android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1074) 在 android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1447) 在 android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1286)

很遗憾,您的设备可能不支持 ArcGIS Runtime。请参阅此论坛主题:

https://community.esri.com/thread/186730-error-createcontext-failed-eglsuccess-when-under-android-422-application-is-started

This is a known issue for this release that has not found its way into the release notes yet, we will update the release notes soon.

The issue is that some devices do not correctly report their OpenGL configurations to allow us to create our OpenGL context. We need to be specific in creating the OpenGL context to allow many of our map rendering features to work properly (particularly for things like Vector Tiled Layers). We have implemented a solution which works on most devices, but it will still be problematic on some, especially older devices running older versions of Android.

Please try on another device or the emulator.