android 程序在虚拟上运行报错,真机调试没有问题,都是android 10的系统
--------- beginning of crash
E/AndroidRuntime: FATAL EXCEPTION: GLThread 253
Process: com.example.myprograming, PID: 2944
java.lang.IllegalArgumentException: No configs match configSpec
at com.fengmap.android.map.FMGLView$ConfigChooser.chooseConfig(SourceFile:189)
at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1054)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1431)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1272)
I/Process: Sending signal. PID: 2944 SIG: 9
试过好几个虚拟机都不行,原本用的android studio自带的,然后换了genymotion的也不行,打开程序就闪退
有没有人回答一下,是不是要做适配什么的呀
模拟器不支持OpenGL ES 2.0
是因为android模拟器不支持OpenGL ES 2.0,解决办法:创建模拟器时:GPU emulation选yes,需要android 4.0以上的版本才行。使用真机没有这个问题。