Android Cocos 2D空指针异常

Android Cocos 2D空指针异常,android,nullpointerexception,2d,cocos2d-android,Android,Nullpointerexception,2d,Cocos2d Android,我遵循了以下教程中的指南。 就在第一次运行时,我得到了以下错误 04-29 10:21:08.022: E/AndroidRuntime(12702): FATAL EXCEPTION: GLThread 10 04-29 10:21:08.022: E/AndroidRuntime(12702): java.lang.NullPointerException 04-29 10:21:08.022: E/AndroidRuntime(12702): at org.cocos2d.node

我遵循了以下教程中的指南。

就在第一次运行时,我得到了以下错误

04-29 10:21:08.022: E/AndroidRuntime(12702): FATAL EXCEPTION: GLThread 10
04-29 10:21:08.022: E/AndroidRuntime(12702): java.lang.NullPointerException
04-29 10:21:08.022: E/AndroidRuntime(12702):    at org.cocos2d.nodes.CCAtlasNode.updateBlendFunc(CCAtlasNode.java:168)
04-29 10:21:08.022: E/AndroidRuntime(12702):    at org.cocos2d.nodes.CCAtlasNode.<init>(CCAtlasNode.java:77)
04-29 10:21:08.022: E/AndroidRuntime(12702):    at org.cocos2d.nodes.CCLabelAtlas.<init>(CCLabelAtlas.java:40)
04-29 10:21:08.022: E/AndroidRuntime(12702):    at org.cocos2d.nodes.CCLabelAtlas.label(CCLabelAtlas.java:35)
04-29 10:21:08.022: E/AndroidRuntime(12702):    at org.cocos2d.nodes.CCDirector.setGLDefaultValues(CCDirector.java:593)
04-29 10:21:08.022: E/AndroidRuntime(12702):    at org.cocos2d.nodes.CCDirector.onSurfaceCreated(CCDirector.java:636)
04-29 10:21:08.022: E/AndroidRuntime(12702):    at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1349)
04-29 10:21:08.022: E/AndroidRuntime(12702):    at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1119)
04-29 10:21:08.022:E/AndroidRuntime(12702):致命异常:GL10
04-29 10:21:08.022:E/AndroidRuntime(12702):java.lang.NullPointerException
04-29 10:21:08.022:E/AndroidRuntime(12702):位于org.cocos2d.nodes.CCAtlasNode.updateBlendFunc(CCAtlasNode.java:168)
04-29 10:21:08.022:E/AndroidRuntime(12702):位于org.cocos2d.nodes.CCAtlasNode.(CCAtlasNode.java:77)
04-29 10:21:08.022:E/AndroidRuntime(12702):位于org.cocos2d.nodes.cclabelalas.(cclabelalas.java:40)
04-29 10:21:08.022:E/AndroidRuntime(12702):位于org.cocos2d.nodes.cclabelalas.label(cclabelalas.java:35)
04-29 10:21:08.022:E/AndroidRuntime(12702):位于org.cocos2d.nodes.CCDirector.setGLDefaultValues(CCDirector.java:593)
04-29 10:21:08.022:E/AndroidRuntime(12702):在org.cocos2d.nodes.CCDirector.onSurfaceCreated(CCDirector.java:636)
04-29 10:21:08.022:E/AndroidRuntime(12702):在android.opengl.GLSurfaceView$GLThread.guarderrun(GLSurfaceView.java:1349)
04-29 10:21:08.022:E/AndroidRuntime(12702):位于android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1119)

该库不再更新。最好开始使用:。它使用C++,在Android上工作,使用JNI(本地代码)。代码可以移植到任何其他平台,如IOS


希望这会有帮助

事实上,我不知道如何:D新这里:p