Wednesday, September 22, 2010

[android-developers] Re: Integrating Proguard using recently posted instructions

I would suggest adding

<path id="android.modified.classpath">
<fileset dir="${external.libs.dir}">
<include name="**/*.jar"/>
</fileset>
<path refid="android.target.classpath"/>
</path>

BEFORE the libraryjars property, than that property to point to that
path..

Okay I will turn in the bug report :)


On Sep 22, 5:00 pm, William Ferguson <william.ferguson...@gmail.com>
wrote:
> The error msg seems to indicate where quite clearly.
> Line 38 of add-proguard-release.xml is where it is failing.
>
> And it is failing because it can't find the admob library and suggest
> that you include them using "-libraryjars"
>
> On Sep 22, 8:18 pm, akatka <gur...@gmail.com> 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?

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

No comments:

Post a Comment