Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Cannot find build.xml" error building Android SDK sample

Tags:

android

ant

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.

like image 810
root0124 Avatar asked Apr 27 '17 03:04

root0124


2 Answers

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

like image 146
Fortran Avatar answered Sep 21 '22 12:09

Fortran


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.

like image 21
Artem Mostyaev Avatar answered Sep 19 '22 12:09

Artem Mostyaev