yasiriqbal776 / android-custom-class-loading-sample

Automatically exported from code.google.com/p/android-custom-class-loading-sample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build.xml not working

GoogleCodeExporter opened this issue · comments

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

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

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
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
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

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: