Android build showing black screen

This is the scenerio:

  1. I am using Cocos2D v3.7, NDK r10e. All environment variables are set up properly.
  2. I built a new javascript project using cocos new command. I did not use any cocos compile command.
  3. Next I ran the Xcode project in frameworks > runtime-src > proj.ios_mac folder. I created and edited javascript files in src folder and imported resource files in res folder. I updated project.json, resources.js, main.js files and ran the project successfully on iOS device and simulator.
  4. Next I used the following command to build and run on Android:
    cocos run -p android --ap android-19
  5. I get a complete black screen showing nothing, not even the frame rates.

What am I doing wrong?

I get a similar issue too. I’m also using Cocos2D v3.7, NDK r10e, JavaScript. My game runs perfectly fine when I debug it on Chrome but when I try it in the iOS simulator I get a black screen.