9

The log is:

BUILD FAILED

/Users/xxx/sample/build.xml:114: Cannot find /Users/xxx/Library/Android/Library/Android/sdk/tools/ant/build.xml imported from /Users/xxx/sample/build.xml

I can confirm that sdkdir is right.

I found there is not an ant directory in /Users/xxx/Library/Android/Library/Android/sdk/tools/.

I found someone saying it is automatically generated. How can I make this build.xml in tools/ant? I use a Mac.

2
  • 1
    just download the version of tools below 26.0 Commented Apr 28, 2017 at 6:12
  • Download the 25.2.5, not the 25.3 it will not work. Commented Dec 9, 2020 at 15:47

2 Answers 2

11

https://dl.google.com/android/repository/tools_r25.2.5-windows.zip

https://dl.google.com/android/repository/tools_r25.2.5-macosx.zip

https://dl.google.com/android/repository/tools_r25.2.5-linux.zip

Download archive and replace tools folder of your android sdk

Sign up to request clarification or add additional context in comments.

Comments

2

You have to install an old Android Sdk version. The latest ones doesn't have tools\ant folder.

You can download older version here. Download archive and replace tools folder of your sdk.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.