HelloCpp crashed on android simulator (cocos2d-x 2.1.4)

These are what I used: Eclipse Indigo SR2,cocos2d-x 2.1.4

After I finished compiling HelloCpp and tried to run it on a android simulator.I got this “Unfortunately,Hello Cpp has stopped” from simulator,and this "
FATAL EXCEPTION:GLThread 78
java.lang.IllegalArgumentException:No configs match configSpec
at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:863)
at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1024)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1401)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)" from eclipse LogCat.

It looks like there are something wrong with GLSurfaceView.java
I have changed my simulator from API 8 TO API 17. It still not work.

I think that Android emulator doesn’t support GLES 2.0 which is required by cocos

1 Like

At first, you should enable “Use host GPU” option in emulator settings. At second, you should compile app with API level >= 17, otherwise android itself will not run with “Use host GPU” option.

1 Like

Thank you. It worked
Sergey Shambir wrote:

At first, you should enable “Use host GPU” option in emulator settings. At second, you should compile app with API level >= 17, otherwise android itself will not run with “Use host GPU” option.