It looks like you have an add-on that doesn't export a library. Its path is added to the list of library proguard should know about but it's a folder not a jar file.
Why are you compiling against an add-on that does not export a library? On Mon, Sep 27, 2010 at 1:37 PM, Ryan Mattison <[email protected]> wrote: > I still have an issue, please help! add-proguard-release.xml:31 is > where it occurs. I'm eating a candy bar every hour until this is > resolved! Please save my health !!!! > > [echo] Signing final apk... > [signjar] Signing JAR: C:\Android\AndroidWorkspace\GeoTextXandy\Die > \bin\Geo > t-unsigned.apk to C:\Android\AndroidWorkspace\GeoTextXandy\Die\bin > \GeoText-un > gned.apk as speaksms > [echo] Running zip align on final apk... > [echo] Release Package: C:\Android\AndroidWorkspace\GeoTextXandy > \Die\bin > oText-release.apk > > BUILD SUCCESSFUL > Total time: 9 seconds > C:\Android\AndroidWorkspace\GeoTextXandy\Die> > > Without &add-proguard-release; > > With it, > > C:\Android\AndroidWorkspace\GeoTextXandy\Die>ant release > Buildfile: C:\Android\AndroidWorkspace\GeoTextXandy\Die\build.xml > [setup] Android SDK Tools Revision 7 > [setup] Project Target: Google APIs > [setup] Vendor: Google Inc. > [setup] Platform Version: 2.1-update1 > [setup] API level: 7 > [setup] > [setup] ------------------ > [setup] Resolving library dependencies: > [setup] ------------------ > [setup] Ordered libraries: > [setup] ------------------ > [setup] > [setup] > [setup] Importing rules file: tools\ant\ant_rules_r3.xml > > -set-release-mode: > > -dirs: > [echo] Creating output directories if needed... > > -pre-build: > > -resource-src: > [echo] Generating R.java / Manifest.java from the resources... > > -aidl: > [echo] Compiling aidl files into Java classes... > > -pre-compile: > > compile: > [javac] C:\Android\android-sdk_r05-windows\android-sdk-windows > \tools\ant\an > _rules_r3.xml:336: warning: 'includeantruntime' was not set, > defaulting to buil > .sysclasspath=last; set to false for repeatable builds > [javac] Compiling 1 source file to C:\Android\AndroidWorkspace > \GeoTextXandy > Die\bin\classes > > -dex-obfuscate: > [delete] Deleting: C:\Android\AndroidWorkspace\GeoTextXandy\Die\obf > \original > jar > [jar] Building jar: C:\Android\AndroidWorkspace\GeoTextXandy\Die > \obf\orig > nal.jar > [proguard] ProGuard, version 4.5.1 > [proguard] Reading input... > [proguard] Reading program jar [C:\Android\AndroidWorkspace > \GeoTextXandy\Die\o > f\original.jar] > [proguard] Reading library jar [C:\Android\AndroidWorkspace > \GeoTextXandy\Die\l > bs:C:\Android\android-sdk_r05-windows\android-sdk-windows\platforms > \android-7\a > droid.jar] > > BUILD FAILED > C:\Android\AndroidWorkspace\GeoTextXandy\Die\add-proguard-release.xml: > 31: Can't > read [C:\Android\AndroidWorkspace\GeoTextXandy\Die\libs:C:\Android > \android-sdk_ > 05-windows\android-sdk-windows\platforms\android-7\android.jar] (No > such file o > directory) > > Total time: 2 seconds > > > On Sep 26, 3: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 integrating Proguard obfuscation 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 the proguard >> > > 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 > -- 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

