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

