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?
Typically, Ant's build file, called build. xml should reside in the base directory of the project.
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.
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.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With