build.xml no longer work under newer sdk tool
Opened this issue · 1 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. check out project
2. modify local.properties to point to correct android sdk location
3. execute ant debug
What is the expected output? What do you see instead?
expect build success msg
but see following instead:
BUILD FAILED
build.xml:160: The following error occurred while executing
this line:
build.xml:117: Reference jar.libs.ref not found.
What version of the product are you using? On what operating system?
android sdk tool r19, ant 1.8.2, windows 7 pro x64
Please provide any additional information below.
on line 117 of build.xml, instead of
<path refid="jar.libs.ref" />
use
<path refid="project.libraries.jars" />
to solve this problem
Original issue reported on code.google.com by yen...@gmail.com
on 3 May 2012 at 5:44
GoogleCodeExporter commented
it is changed also in r20?
<path refid="project.all.jars.path" />
I looked into <sdk_dir>/tools/ant/build.xml and it is now
**project.all.jars.path**
<!-- set the secondary dx input: the project (and library) jar files
If a pre-dex task sets it to something else this has no effect -->
<if>
<condition>
<isreference refid="out.dex.jar.input.ref" />
</condition>
<else>
<path id="out.dex.jar.input.ref">
<path refid="project.all.jars.path" />
</path>
</else>
</if>
Original comment by supp.san...@gmail.com
on 7 Jul 2012 at 6:54