2012-10-08 648 views
1

在某些手機上,我無法執行PlayN項目。每當我得到: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和宏碁A500了。但它只是對谷歌Nexus S.精細

+1

看來PlayN需要平臺> = 8:http://developer.android.com/reference/android/opengl/GLSurfaceView.html#setEGLContextClientVersion(int) – dawi

回答

2

它需要的是有一個GPU是suports openGL20 openGL20在軟件仿真(在中國製造的幾種模式做到這一點)的設備

+0

是的,我想通了。它需要android> = 2.2。因爲某些GLES 2方法僅在此版本中出現。對於那些不需要openGL20的2D遊戲來說,這是一個遺憾。 – dawi