There is no reason you need to use the version of Ant that is used by
Eclipse -- and I recommend that nobody ever do so, ever, for any
reason. It just makes no sense as a development practice to depend on
an internal feature of the IDE for non-IDE things.

That's besides the fact that the Eclipse folks are eternally way
behind in what version of Ant they ship; I have no idea why.

Just download the latest version of ant from ant.apache.org. Don't
even mess with apt-get or yum or Maven or any other repository stuff.
Just download it, and check it in to your source code repository,
where you can tag and branch in a coordinated way with this and all
other build tools you use.

On Dec 19, 6:44 am, "Fred Grott(Android Expert, 
http://mobilebytes.wordpress.com)"
<[email protected]> wrote:
> Od not run the ant build using eclipse 3.5,3.6, or 3.7 it still has
> 1.7.1 ant version..run form commandline..
>
> I uuse wickedshell plugin to run the ant commandline command from my
> workspace project dir
>
> On Dec 9, 6:11 am, jb <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hi Xavier,
>
> > I just updated my SDK to 2.3 and ADT to 8.01.
> > I updated 'default.properties' to include:
> > proguard.config=proguard.cfg
> > proguard.cfg is in my project root directory.
> > One of the entries in my proguard.cfg is
> > '-dontskipnonpubliclibraryclasses'
>
> > When I run a release with ant (or export with Eclipse) it appears that
> > the proguard.cfg is not being read by proguard.  I get the following
> > message from proguard.
>
> >  Warning: there were 247 unresolved references to classes or
> > interfaces.
> >  [proguard]          You may need to specify additional library jars
> > (using '-libraryjars'),
> >  [proguard]          or perhaps the '-dontskipnonpubliclibraryclasses'
> > option.
>
> > Any ideas or suggestions.
>
> > jb
>
> > On Dec 8, 4:39 pm, Xavier Ducrohet <[email protected]> wrote:
>
> > > Robert, if you use the new build system and the default proguard
> > > config file, you shouldn't have any problem.
>
> > > you will however need Ant 1.8 as we use a new feature.
>
> > > I'm going to add a check on this to make sure people don't use a
> > > version of ant that's too low.
>
> > > On Wed, Dec 8, 2010 at 9:20 AM, Robert Nekic <[email protected]> 
> > > wrote:
> > > > I'm also encountering problems getting the ProGuard integration
> > > > going.  Everything was fine with a test project until I added a few
> > > > jars to "libs" and added them to the Java Build Path.  Now my attempts
> > > > to generate an unsigned release build causes the following error:
>
> > > > com.android.ide.eclipse.adt.internal.build.ProguardResultException
> > > >        at
> > > > com.android.ide.eclipse.adt.internal.build.BuildHelper.runProguard(Unknown
> > > > Source)
> > > >        at
> > > > com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(
> > > >  Unknown
> > > > Source)
> > > >        at com.android.ide.eclipse.adt.internal.project.ExportHelper
> > > > $2.run(Unknown Source)
> > > >        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
> > > > I have previously used ProGuard and Ant generate builds outside of
> > > > Eclipse and my old build script included "-libraryjars ${android-jar};
> > > > ${external-libs-folder}" in the ProGuard params.  I'm trying to figure
> > > > out the equivalent addition to proguard.cfg but so far have not
> > > > succeeded.
>
> > > > Any tips?
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.> To post to this group, send email 
> > > > [email protected]
> > > > To unsubscribe from this group, send email 
> > > > to>[email protected]
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > Xavier Ducrohet
> > > Android SDK Tech Lead
> > > Google Inc.
>
> > > Please do not send me questions directly. Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to