cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.14k stars 7.05k forks source link

Access Android third rounds of SDK organic rate automatically restart my #9375

Open bapai1212 opened 9 years ago

bapai1212 commented 9 years ago

Recently encountered a problem, search many posts, solve in your official forum also made a post and request problem, has not been answered, and now the official technical support request: My project is the development of cocos2dx-3.2 Android games, game development process there is no problem, then I project access third rounds of Android SDK, such as Alipay, access is successful, I can also the normal payment, but some mobile phones have a chance to appear in the problem: I pay treasure, pay a success after switching back to when I was his game automatically restart the game situation: log only inside the:because the focused view org.cocos2dx.lib.Cocos2dxGLSurfaceView@40566150 has no id. 05-05 18:25:36.377: E/cocos2d-x assert(6307): D:\Timothy\FingerDance\Projects\empire\tech\empire\frameworks\runtime-src\proj.android../../js-bindings/cocos2d-x/cocos/2d/platform/android/CCApplication.cpp function:getInstance line:79

Help me!

bapai1212 commented 9 years ago

My main problem is the core problem of automatic restart the game, in Cocos2dxGLSurfaceView I replace / / this.mGLSurfaceView.setCocos2dxRenderer (Cocos2dxRenderer) (New) This.mGLSurfaceView.setCocos2dxRenderer (MyRenderer) (New); ; but restart problem still can not solve the