Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find build.xml (Android)

I've been looking for an asnwer for this for a little while now, but I cant seem to find it. I moved a NeBeans Android project over through perfoce and now I am getting the following error

 ****\ZYAndroidAPP\build.xml:81: Cannot find F:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml imported from ****\ZYAndroidAPP\build.xml

Seems like the build information from Android is not being approriately set by

  <import file="${sdk.dir}/tools/ant/build.xml" />

in in the build script of the project. I tried setting it to the correct path to the SDK and it gave me the same error.

Has anyone had this problem before?

like image 542
Serguei Fedorov Avatar asked Apr 19 '12 20:04

Serguei Fedorov


People also ask

Where is build xml?

Typically, Ant's build file, called build. xml should reside in the base directory of the project.

What is build xml in Android?

The build. xml file is an Ant script that is created by the PDE to take your plug-in components and combine them into a deployable format. This file compiles and archives your plug-in source code into a single JAR file.

What is Basedir in build xml?

The 'basedir' is the base directory from which any relative directories used within the Ant build file are referenced from. If this is omitted the parent directory of the build file will be used.


1 Answers

Check two things...

A. Make sure your path is set properly in your local.properties file

sdk.dir=/Users/me/Documents/android-sdk-macosx/

B. Make sure your environment variable is set properly:

echo $ANDROID_HOME

If not, then set it:

export ANDROID_HOME=/Users/me/Documents/android-sdk-macosx/

like image 63
Alfie Hanssen Avatar answered Nov 02 '22 05:11

Alfie Hanssen