Cocos2D-x game fresh off the Play Store can't even open

后端 未结 1 1338
自闭症患者
自闭症患者 2020-12-20 03:50

I just finished my first cocos2d-x game. I\'ve tested it on my GNexus 4.1 and other lower devices, including tablets. However, when bought and downloaded to a Nexus 7, it wo

相关标签:
1条回答
  • 2020-12-20 04:13

    There are many application which suffer from this error. It occurs on Android 4.2 with project compiled using specific Android NDK - for me it was r8d, but you can find also people with other versions with that bug. Workaround I found is mentioned here. The solution is to add following lines of code in any of your .cpp files:

    #ifdef __cplusplus
        extern "C" {
    #endif
    
    void __exidx_start() {}
    void __exidx_end()   {}
    
    #ifdef __cplusplus
        }
    #endif
    

    For me it worked.

    But I think you must watch out, because in future version of NDK, when they finally fix this, these symbols might be defined twice, so this workaround will transform into a bug, actually.

    0 讨论(0)
提交回复
热议问题