A thing what I did
The command.$ cocos compile -s ./TestingProject -p androidThe reply. It was not 5 seconds!
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.
Environment
Java SE Development Kit 8u92Cocos2d-x 3.10
Android Studio 2.1.1 (SDK API level 23)
Android NDK r10e
Apache ANT 1.9.7
What should I do
1. Find this file in Android SDK folder.org.apache.http.legacy.jarNormally it is at this path if Android Studio was installed for standard.
/Users/(UserName)/Library/Android/sdk/platforms/android-23/optional
2. Copy this jar file to this place.
(Your Project)/cocos2d/cocos/platform/android/java/libs