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

前回に引き続き Cocos2d-x プロジェクトを実行すると、エラーが出ました。

状況

実行コマンド
$ cocos compile -s ./TestingProject -p android
メッセージ
BUILD FAILED
/Users/(UserName)/Library/Android/sdk/tools/ant/build.xml:597: The following error occurred while executing this line:
/Users/(UserName)/Library/Android/sdk/tools/ant/build.xml:716: The following error occurred while executing this line:
/Users/(UserName)/Library/Android/sdk/tools/ant/build.xml:730: Compile failed; see the compiler error output for details.

Total time: 5 seconds
Error running command, return code: 1.

環境

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

対応

1. Android SDK フォルダ内の、下記ファイルを探します。
org.apache.http.legacy.jar
Android Studio を通常設定でインストールした場合、以下の場所にあります。
/Users/(UserName)/Library/Android/sdk/platforms/android-23/optional

2. プロジェクトフォルダ内の、以下の場所にコピーします。
(Your Project)/cocos2d/cocos/platform/android/java/libs

参考

http://discuss.cocos2d-x.org/t/cant-compile-to-android/26874