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

Reply via email to