While building my PhoneGap app (with the Facebook SDK plugin installed), I encountered this error:
BUILD FAILED C:\\adt-bundle-windows-x86_64-201305
For me, conflicting build targets were at fault. Needed to change project.properties in my library directory (which was appcompat) to 'target=android-21', instead of android-19 which I had before. If you encounter a similar error and the previous answer (ant clean) does not work, check all the build targets.
Close Eclipse and then run ant clean
in your project folder.
Verify your JAVA_HOME
variable is correctly set to some path like C:\Program Files\Java\jdk1.7.0_67\
and if the error still goes on, it may be solved going to the build.xml and setting true to the variable fork
, or the passed variable ${need.javac.fork}
, which sets fork´s value in:
fork="${need.javac.fork}"
You may also want to make sure your local.properties has the path to your sdk:
sdk.dir=/path/to/adt/sdk
I had the same issue, I solved it this way:
Go to the framework directory in the project, and type these commands to build the jar file (you will need to have ant
installed to generate the jar file, but it should be on your system already):
android update project -p . -t android-23
ant jar
So just make sure what type of android you have because you may have tried android-19
.
For me: I had
edited my config.xml wrongly
. Try undoing your edits or placing a generic config.xml then see if she builds.