07-11 14:13:59.003: E/AndroidRuntime(22061): FATAL EXCEPTION: GLThread 10
07-11 14:13:59.003: E/AndroidRuntime(22061): java.lang.ClassCastException: java.lang.Integer
07-11 14:13:59.003: E/AndroidRuntime(22061): at android.app.ContextImpl$SharedPreferencesImpl.getString(ContextImpl.java:3023)
07-11 14:13:59.003: E/AndroidRuntime(22061): at org.cocos2dx.lib.Cocos2dxHelper.getStringForKey(Cocos2dxHelper.java:302)
07-11 14:13:59.003: E/AndroidRuntime(22061): at org.cocos2dx.lib.Cocos2dxRenderer.nativeInit(Native Method)
07-11 14:13:59.003: E/AndroidRuntime(22061): at org.cocos2dx.lib.Cocos2dxRenderer.onSurfaceCreated(Cocos2dxRenderer.java:72)
07-11 14:13:59.003: E/AndroidRuntime(22061): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1348)
07-11 14:13:59.003: E/AndroidRuntime(22061): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
这这里用中文发帖真的没问题么。。。。。
Check your code to see if there CCUserDefault :: getStringKey () uses key, which use the CCUserDefault :: setIntegerKey () method to assignment