在某些手机上,我无法执行PlayN项目。每次我得到:
E/AndroidRuntime(10336): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime(10336): java.lang.NoSuchMethodError: playn.android.GameViewGL.setEGLContextClientVersion
E/AndroidRuntime(10336): at playn.android.GameViewGL.<init>(GameViewGL.java:85)
E/AndroidRuntime(10336): at playn.android.GameActivity.onCreate(GameActivity.java:73)
E/AndroidRuntime(10336): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime(10336): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
E/AndroidRuntime(10336): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
E/AndroidRuntime(10336): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
E/AndroidRuntime(10336): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
E/AndroidRuntime(10336): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(10336): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(10336): at android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime(10336): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(10336): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(10336): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:862)
E/AndroidRuntime(10336): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
E/AndroidRuntime(10336): at dalvik.system.NativeStart.main(Native Method)
I/Process ( 2238): Sending signal. PID: 10336 SIG: 3
我在三星Galaxy S1和Acer A500上得到了它。但在Google Nexus S上运行良好。
答案 0 :(得分:2)
它需要一个具有GPU的设备,该GPU支持在软件中模拟的openGL 20 或 openGL 20(中国制造的几个型号都可以这样做)