Hope you aren't still eating candy bars. However, Dan is not a tech writer and the article needs to be a bit more fleshed out. I was stumped similarly to you yesterday until I figured out that to actually obfuscate I had to point to the directory where the proguard jar file was located. This was on Linux not Windows (I only use Windows when I have to). So:
proguard.dir=/Directory/Proguard/Is/Installed/In will not cut it . Maybe it does on Windows but not Linux since people may assume that putting the root proguard directory will work but it is not searching the subdirectories for the jar. In the Linux version the proguard.jar is in the lib directory of the proguard installation (on Linux that might be "/home/<user>/proguard/lib" ). Once that was settled the build file did all the work it was supposed to including the mapping file. Fortunately everything seems to work for my app but then I don't do anything too exotic. On Sep 27, 4:09 pm, Ryan Mattison <[email protected]> wrote: > I downloaded the latest of those two files and was unable to get it to > work. Still eating candy bars! > > Thanks, > > Ryan > > On Sep 27, 12:51 pm, Dan Galpin <[email protected]> wrote: > > > In an effort to integrate the change for external libraries, I believe > > that I broke building on Windows machines. I believe that I've > > corrected this problem with the latest version. Let me know if it > > works for you. > > > Cheers, > > Dan > > - > > > Dan Galpin > > Developer Advocate, Google > > - > > The collective minds on this forum far exceed my own, so post messages > > here, rather than my e-mail address. > > > On Sep 26, 1:25 pm, Ryan Mattison <[email protected]> wrote: > > > > Can't for the life of me get this stuff to work. It looks like it is > > > trying to combine folders or something? > > > > [proguard]ProGuard, version 4.5.1 > > > [proguard] Reading input... > > > [proguard] Reading program jar [C:\Android\AndroidWorkspace > > > \GeoTextXandy\Die\ob > > > f\original.jar] > > > [proguard] Reading library jar [C:\Android\AndroidWorkspace > > > \GeoTextXandy\Die\li > > > bs:C:\Android\android-sdk_r05-windows\android-sdk-windows\platforms > > > \android-7\an > > > droid.jar] > > > > BUILD FAILED > > > C:\Android\AndroidWorkspace\GeoTextXandy\Die\build.xml:92: Can't read > > > [C:\Androi > > > d\AndroidWorkspace\GeoTextXandy\Die\libs:C:\Android\android-sdk_r05- > > > windows\andr > > > oid-sdk-windows\platforms\android-7\android.jar] (No such file or > > > directory) > > > > Total time: 2 seconds > > > > Any ideas?! > > > > On Sep 23, 1:40 am, Stephen Lau <[email protected]> wrote:> akatka wrote: > > > > > I am integratingProguardobfuscation in my application using the > > > > > recently posted instructions on the Android developers blog. > > > > > Everything works fine as long as my project doesn't use any third > > > > > party jars. When I use a third party jar, admob-sdk-android.jar in my > > > > > case, the "ant release" step fails with this warning > > > > > > [proguard] Initializing... > > > > > [proguard] Warning: com.pqrs.XYZ: can't find referenced class > > > > > com.admob.android.ads.AdManager > > > > > [proguard] Warning: com.pqrs.XYZ: can't find referenced class > > > > > com.admob.android.ads.AdManager > > > > > [proguard] Warning: there were 2 unresolved references to classes or > > > > > interfaces. > > > > > [proguard] You may need to specify additional library jars > > > > > (using '-libraryjars'). > > > > > > BUILD FAILED > > > > > D:\testandroid\eclipseworkspace\MyProj\add-proguard-release.xml:38: > > > > > Please correct the above warnings first. > > > > > > Where do I specify the list of third party jars so that theproguard > > > > > can find those while the obfuscation step? > > > > > change the -libraryjars line in add-proguard-release.xml to look like: > > > > > -libraryjars ${external.libs.dir}:${libraryjarpath} > > > > > and you should be all set > > > > > cheers, > > > > steve > > > > > -- > > > > stephen lau | [email protected] |http://whacked.net|@stevel -- 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

