Crash when running in Android Emulator

Hello all,

I get the trouble when trying to run the game on Android Emulator (Android 4.2.1). It works fine when I run in a real device, but not the emulator. Please help me :frowning:

I attached my Emulator below.

The error is

02-15 22:20:33.921: E/AndroidRuntime(613): FATAL EXCEPTION: GLThread 78
02-15 22:20:33.921: E/AndroidRuntime(613): java.lang.IllegalArgumentException: No configs match configSpec
02-15 22:20:33.921: E/AndroidRuntime(613): 	at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:838)
02-15 22:20:33.921: E/AndroidRuntime(613): 	at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:994)
02-15 22:20:33.921: E/AndroidRuntime(613): 	at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1348)
02-15 22:20:33.921: E/AndroidRuntime(613): 	at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1202)


1.png (45.9 KB)

In Android Emulator settings , you should check “Use Host GPU”/“GPU emulation”.

Cocos2d-x requires OpenGL 2.0

You need to get your emulator to support that.

There are many ways.

BTW, I get about 20 of these a day in my crash tracking system – people trying to play the my game on an emulator.

Can you explain more? I’m a beginner :slight_smile:

corytrese wrote:

BTW, I get about 20 of these a day in my crash tracking system – people trying to play the my game on an emulator.

I tried this way but it showed the black screen and no more :;angry

Ryeeeeee wrote:

In Android Emulator settings , you should check “Use Host GPU”/“GPU emulation”.

Download the genymotion at:www.genymotion.com/ and install (its pretty easy)
2)

Enter into jni folder in proj.android ,on project that you created using cocos2dx
open Application.mk
add
APP_ABI := x86

recompile.

Configure genymotion is so easy, to put your app at geny you just need to drag and drop.

i hope it works for you.

1 Like