[Solved] Android (Terminal) installation question about ant/build.xml error

i was following tutorial(android terminal installation) - http://www.cocos2d-x.org/docs/installation/B/index.html

when i use command “python android-build.py -p 23 cpp-tests”, i gets errors.
i don’t know what is the problem.
Is anyone know how to solve the problem.

i’m using

  • Windows 10
  • cocos2d-x-3.11.1
  • ndk r10c
  • apache-ant-1.9.7

and i’m wondering why the command use “Android\sdk\tools\ant” that exist when i download android studio bundle, not ant-1.9.7 that i download as ant.

====================================================================

[javac] Note: C:\cocos2d-x-3.11.1\cocos\platform\android\java\src\org\cocos2dx\lib\Cocos2dxDownloader.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 12 errors
[javac] 3 warnings

BUILD FAILED
C:\Android\sdk\tools\ant\build.xml:597: The following error occurred while executing this line:
C:\Android\sdk\tools\ant\build.xml:716: The following error occurred while executing this line:
C:\Android\sdk\tools\ant\build.xml:730: Compile failed; see the compiler error output for details.

You show wrong part of error log. It’s just summary, not error stated. But I bet that it’s because of android-23 (error caused by missing org.apache.http). Add android-22 in Android SDK manager, download clean copy of cocos2d-x and run cpp-tests using Android-22.

You can find other thread with more details in this forum, because somebody else had the same problem with cocos2d-x 3.10 a few days ago. I can’t find it for you now, because I’m writing from mobile and copy-paste is not working in discuss.

thank you. i have searched forum. so i solved the problem.