在某些手机上,我无法执行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上正常运行。
最佳答案
它需要一个具有GPU的设备,该GPU支持以软件仿真的openGL 20或openGL 20(中国制造的几种型号可以做到这一点)
关于java - PlayN和兼容性,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/12789566/