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 not working #1

Closed
GoogleCodeExporter opened this issue Oct 8, 2015 · 5 comments
Closed

build.xml not working #1

GoogleCodeExporter opened this issue Oct 8, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. ant debug (or release) causes this error:
/home/user/android-sdks/tools/ant/pre_setup.xml:4: Your build.xml file is 
outdated. Delete it and regenerate it with 'android update project'

2. If recreate build.xml and try to re-integrate the macrodef and target tags 
into the new build.xml, the build breaks on the <setup /> tag:
BUILD FAILED
/home/user/workspace/android-custom-class-loading-sample-read-only/android-custo
m-class-loading-sample/build.xml:146: Missing attribute projectTypeOut

3. I hope this is an easy fix for someone who knows more about ant and android 
than I presently do.

What is the expected output? What do you see instead?

- it should have built cleanly

What version of the product are you using? On what operating system?

- Android 2.1 SDK under Mint 12

Please provide any additional information below.


Original issue reported on code.google.com by complex...@gmail.com on 30 Nov 2011 at 10:01

@GoogleCodeExporter
Copy link
Author

I got same problem.

Windows7/64
SDK16 & ADT16

Fix build.xml followings

    <!-- Required pre-setup import -->

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

     to

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

Then execute

>ant debug
Buildfile: ... \build.xml

BUILD FAILED
... \build.xml:168: Missing attribute projectTypeOut


Original comment by pccraftc...@gmail.com on 31 Dec 2011 at 3:35

@GoogleCodeExporter
Copy link
Author

The build errors are attributed to Ant script changes in recent SDK Tools 
revisions.  Looking into it...

Original comment by fch...@google.com on 16 Jan 2012 at 5:48

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Modified build to be compatible with SDK Tools rev 16.

Original comment by fch...@google.com on 16 Jan 2012 at 7:33

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

build.xml still shows validation errors in eclipse for Android 2.2 
(Gingerbread). The help and -compile targets are flagged as "undefined". 

I'm not at all adept at diagnosing/fixing ant problems. Mainly use maven these 
days. 

Original comment by bradjcox@gmail.com on 12 Feb 2012 at 12:45

@GoogleCodeExporter
Copy link
Author

For SDK Tools rev 19 (maybe previous versions IDK) the following error shows:
BUILD FAILED
/home/user/workspace/android-custom-class-loading-sample/build.xml:161: The 
following error occurred while executing this line:
/home/user/workspace/android-custom-class-loading-sample/android-custom-class-lo
ading-sample/build.xml:127: Reference jar.libs.ref not found.

The workaround is to change build.xml:117 from <path refid="jar.libs.ref" /> to 
<path refid="project.libraries.jars" />

Hope this helps!

(Attached modified version of build.xml for rev 19)

Original comment by luisguit...@gmail.com on 18 Apr 2012 at 9:33

Attachments:

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

1 participant