root0124
root0124

Reputation: 81

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

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.

Upvotes: 8

Views: 9313

Answers (2)

Artem Mostyaev
Artem Mostyaev

Reputation: 3908

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.

Upvotes: 2

Related Questions