I developed a new game using cocos-js and cocos code IDE, it is working perfect on Andorid remote debugging, I am trying now to generate the apk, but unfortunately, I am getting an error when I use cocos-js V3.0 final version and when I use RC2 version, I am able to generate the apk but when I download it to the device it is giving blank black screen…
I will explain what I did exactly:
1- I create a new cocos-js project using runtime template
2- I followed the instructions to include facebook SDK.
3- I tried to make the .apk file without changing any line of code
4- I am getting the below message (“could you please advise me if there is any document that can help me to add plugins to my game, I really spend more than two days surfing the net without any hope.”)
Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
Android NDK: D:\Projects\Cocos\plugins\MyJSGame\frameworks\runtime-src\proj.android…/…/js-bindings/cocos2d-x/cocos/editor-support/cocostudio/Android.mk: Cannot find module with tag ‘…/js-bindings/cocos2d-x/plugin/jsbindings/cocos2d-x/plugin/jsbindings’ in import path
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
Android NDK: The following directories were searched:
Android NDK:
make.exe: Entering directory D:/Projects/Cocos/plugins/MyJSGame/frameworks/runtime-src/proj.android' make.exe: Leaving directoryD:/Projects/Cocos/plugins/MyJSGame/frameworks/runtime-src/proj.android’
Runing command: compile
Building mode: release
building native
The Selected NDK toolchain version was 4.8 !
running: ‘d:\android-ndk-r9d\ndk-build -C D:\Projects\Cocos\plugins\MyJSGame\frameworks\runtime-src\proj.android -j1 NDK_MODULE_PATH=D:\Projects\Cocos\plugins\MyJSGame\frameworks\runtime-src\proj.android…/…/js-bindings;D:\Projects\Cocos\plugins\MyJSGame\frameworks\runtime-src\proj.android…/…/js-bindings/external;D:\Projects\Cocos\plugins\MyJSGame\frameworks\runtime-src\proj.android…/…/js-bindings/cocos2d-x;D:\Projects\Cocos\plugins\MyJSGame\frameworks\runtime-src\proj.android…/…/js-bindings/cocos2d-x/cocos;D:\Projects\Cocos\plugins\MyJSGame\frameworks\runtime-src\proj.android…/…/js-bindings/cocos2d-x/external’
C:\Users\shadi>d:\android-ndk-r9d\ndk-build
Android NDK: Could not find application project directory !
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.
d:\android-ndk-r9d\build/core/build-local.mk:148: *** Android NDK: Aborting . Stop.
making apk is working fine with me if I don’t add the stuff related to facebook integration, so do u have any step by step tutorial to get the plugins working with cocos-js, this can help me alot.
Did you do that in Windows cmd with cocos console? Make sure your ndk version is r9d and your cocos in environment variables is correctly referenced to 3.0final path.
I’ve tested your approach and document it step by step, everything went smooth, and I could be able to generate the apk file, but whenever I deploy and run it on the phone, it is giving a blank black screen showing just the GL vers, GL calls, and frame rate