求助，自己写了个游戏，移植到android后第二次打开就会闪退

heyChenfu
Tue, 30 Jun 2015 06:36:22 +0000

这是LogCat里的内容

FATAL EXEPTION: GLThread 8639
java.lang.NoClassDefFoundError: android/media/MediaPlayer
at org.cocos2dx.lib.Cocos2dxMusic.createMediaplayer(Cocos2dxMusic.java:245)
at org.cocos2dx.lib.Cocos2dxMusic.playBackgroundMusic(Cocos2dxMusic.java:96)
at org.cocos2dx.lib.Cocos2dxHelper.playBackgroundMusic(Cocos2dxHelper.java:193)
at org.cocos2dx.lib.Cocos2dxRenderer.nativeInit(Native Method)
at org.cocos2dx.lib.Cocos2dxRenderer.onSurfaceCreated(Cocos2dxRenderer.java:74)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1494)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Boolean
at android.app.SharedPreferencesImpl.getBoolean(SharedPreferencesImpl.java:242)
at org.cocos2dx.lib.Cocos2dxHelper.getBoolForKey(Cocos2dxHelper.java:349)

遇到这样的情况我该怎么办，第二次打开就会闪退，把游戏卸了再安装就又能打开了
求帮助！

阅读整个主题