Cocos2d-x Android コンパイルエラー1

新規作成した Cocos2d-x プロジェクトを実行すると、エラーになりました。対応方法が2つあります。

状況

実行コマンド
$ cocos compile -s ./TestingProject -p android
メッセージ
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.

環境

Java SE Development Kit 8u92
Cocos2d-x 3.10
Android Studio 2.1.1 (SDK API level 23)
Android NDK r11c
Apache ANT 1.9.7

対応A

NDK フォルダ直下に RELEASE.TXT ファイルを作成します。
/android-ndk-r11c/RELEASE.TXT

中身は
r11c (64-bit)
とだけ書きます。

対応B

Android NDK r10e をダウンロードし、Android NDK r11c と置き換えます。
ダウンロード先
https://dl.google.com/android/repository/android-ndk-r10e-darwin-x86_64.zip

.bash_profile ファイル内の NDK_ROOT を、r10e のパスに書き換えます。
隠しファイルなので、ターミナルから開きます。
$ open -e /Users/(UserName)/.bash_profile
変更を反映します。
$ source /Users/(UserName)/.bash_profile

参考

https://stackoverflow.com/questions/32432752
https://stackoverflow.com/questions/6849981
https://github.com/cocos2d/cocos2d-x/issues/15320