What's happend
Executed command.$ cocos compile -s ./TestingProject -p androidThanks for the reply.
make: /Users/(UserName)/Android/android-ndk-r11c/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-g++: No such file or directory make: *** [obj/local/armeabi/objs-debug/cocostudio_static/WidgetReader/WidgetReader.o] Error 1 make: *** Waiting for unfinished jobs.... Error running command, return code: 2.
Environment
Java SE Development Kit 8u92Cocos2d-x 3.10
Android Studio 2.1.1 (SDK API level 23)
Android NDK r11c
Apache ANT 1.9.7
The solution A
Make "RELEASE.TXT" in NDK folder as other NDK version./android-ndk-r11c/RELEASE.TXT
Just write this below without anything else.
r11c (64-bit)
The solution B
Download Android NDK r10e.https://dl.google.com/android/repository/android-ndk-r10e-darwin-x86_64.zip
Rewrite .bash_profile. It is NDK_ROOT path to r10e from r11c.
You can edit this from terminal because of this is hidden file.
$ open -e /Users/(UserName)/.bash_profileDo not forget this command after that.
$ source /Users/(UserName)/.bash_profile
Ref link
https://stackoverflow.com/questions/32432752https://stackoverflow.com/questions/6849981
https://github.com/cocos2d/cocos2d-x/issues/15320
Hope to solve a problem!