cocos2dx 打包aok成功 但运行失败闪退

本人刚学cocos2dx,做了一个小游戏,在电脑上没有错误,打包过程也没有错误,但是安卓程序运行的时候回闪退,请各位大佬不吝赐教,下面是log:

 I/ActivityManager(  958): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.NB2048.ritgeek/org.cocos2dx.cpp.AppActivity bnds=[36,84][288,378]} from uid 10061 from pid 2424 on display 0
I/SafeCenter.AppProtectService( 1359): activityStarting() intent: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.NB2048.ritgeek/org.cocos2dx.cpp.AppActivity bnds=[36,84][288,378] }
V/WindowManager(  958): addAppToken: AppWindowToken{2bf20539 token=Token{1f00900 ActivityRecord{196e3383 u0 com.NB2048.ritgeek/org.cocos2dx.cpp.AppActivity t129}}} to stack=1 task=129 at 0
D/ViewRootImpl(  958): hardware acceleration is disabled, fakeHwAccelerated = true, HardwareRenderer.sRendererDisabled = false, forceHwAccelerated = false, HardwareRenderer.sSystemRendererDisabled = false, this = ViewRoot{38488ffb Starting com.NB2048.ritgeek,ident = 26}
V/WindowManager(  958): Adding window Window{23122271 u0 Starting com.NB2048.ritgeek} at 12 of 20 (after Window{2e8d1596 u0 com.wuxianlin.oppotools/com.wuxianlin.oppotools.AppManager})
I/ActivityManager(  958): Start proc 12895:com.NB2048.ritgeek/u0a213 for activity com.NB2048.ritgeek/org.cocos2dx.cpp.AppActivity
D/usage_raw_part(  958): write content:dataContentBuffer = com.NB2048.ritgeek|2017-02-28 00:01:08
I/PPS     (  958): [PPSNotifyAppState] nPackNum:1, pack:com.NB2048.ritgeek, com:org.cocos2dx.cpp.AppActivity, state:1, pid:0, last_boost_tid:-1
I/ActivityManager(  958): Process com.NB2048.ritgeek (pid 12895) has died
D/ActivityManager(  958): SVC-handleAppDiedLocked: app = ProcessRecord{4930373 12895:com.NB2048.ritgeek/u0a213}, app.pid = 12895
I/PPS     (  958): [PPSNotifyAppState] nPackNum:1, pack:com.NB2048.ritgeek, com:(null), state:3, pid:0, last_boost_tid:-1
I/ActivityManager(  958): Start proc 12922:com.NB2048.ritgeek/u0a213 for activity com.NB2048.ritgeek/org.cocos2dx.cpp.AppActivity
D/usage_raw_part(  958): write content:dataContentBuffer = com.NB2048.ritgeek|2017-02-28 00:01:09
I/OppoPhoneWindowManager(  958): KeyLockModeReceiver KeyLockMode: 0 ProcessName: com.NB2048.ritgeek
I/PPS     (  958): [PPSNotifyAppState] nPackNum:1, pack:com.NB2048.ritgeek, com:org.cocos2dx.cpp.AppActivity, state:1, pid:0, last_boost_tid:-1
I/ActivityManager(  958): Process com.NB2048.ritgeek (pid 12922) has died
D/ActivityManager(  958): SVC-handleAppDiedLocked: app = ProcessRecord{119063cf 12922:com.NB2048.ritgeek/u0a213}, app.pid = 12922
I/PPS     (  958): [PPSNotifyAppState] nPackNum:1, pack:com.NB2048.ritgeek, com:(null), state:3, pid:0, last_boost_tid:-1
I/ActivityManager(  958): Start proc 12948:com.NB2048.ritgeek/u0a213 for activity com.NB2048.ritgeek/org.cocos2dx.cpp.AppActivity
D/usage_raw_part(  958): write content:dataContentBuffer = com.NB2048.ritgeek|2017-02-28 00:01:09
I/OppoPhoneWindowManager(  958): KeyLockModeReceiver KeyLockMode: 0 ProcessName: com.NB2048.ritgeek
I/PPS     (  958): [PPSNotifyAppState] nPackNum:1, pack:com.NB2048.ritgeek, com:org.cocos2dx.cpp.AppActivity, state:1, pid:0, last_boost_tid:-1
I/ActivityManager(  958): Process com.NB2048.ritgeek (pid 12948) has died
D/ActivityManager(  958): SVC-handleAppDiedLocked: app = ProcessRecord{2b596deb 12948:com.NB2048.ritgeek/u0a213}, app.pid = 12948
I/PPS     (  958): [PPSNotifyAppState] nPackNum:1, pack:com.NB2048.ritgeek, com:(null), state:3, pid:0, last_boost_tid:-1
W/ActivityManager(  958): Force removing ActivityRecord{196e3383 u0 com.NB2048.ritgeek/org.cocos2dx.cpp.AppActivity t129}: app died, no saved state
I/OppoPhoneWindowManager(  958): KeyLockModeReceiver KeyLockMode: 0 ProcessName: com.NB2048.ritgeek

附上程序的代码及apk:
http://pan.baidu.com/s/1bpqvZdl

查看全部
RT_Geek
RT_Geek
2017/02/27 17:08
  • cocos2d-x
  • android
  • 游戏
  • 点赞
  • 收藏
  • 回答
    私信

1个回复