Cocos2d JS Black screen when using Box2D

Hello,

There seems to be an issue many users are experiencing related to the black screen problem when compiling for Android or iOS, but on web everything works fine.

I use the latest version of Cocos2d JS 3.13.1, latest NDK,SDK and Ant.

The problem can be reproduced like this.

1.Create new Cocos2D JS Project
2.in project.json import “Box2D”
3.call some Box2D functions
4.compile for android device
5.open application on android
6.black screen is shown with FPS, but if it gets tested for the web everything works fine.

I had similar issues with Chipmunk, but only when I created joints. The first joint made no difference, but after I created the second joint the black screen problem on android started to appear just like when using Box2D JS.

Does anybody have a fix for this issue, please? Or could there be something I am doing wrong?

I am looking forward to a fix.

Thank you:)
Ben

Can somebody help please? I’m stuck.