Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build.xml no longer work under newer sdk tool #2

Open
GoogleCodeExporter opened this issue Mar 25, 2015 · 2 comments
Open

build.xml no longer work under newer sdk tool #2

GoogleCodeExporter opened this issue Mar 25, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
@GoogleCodeExporter and others