While Fadden addresses what you did to annoy the verifier, let's
consider what you can do to get past it.

I'd start with asking yourself WHY are you using Proguard? What are
you prioritizing -- size reduction, speed, or obscurity?

Proguard has a number of options to control just what it does to your
byte code in the classes.

I haven't tried it in this context, but I can offer the datapoint that
in the AdMob SDK sample, they supply optimize="false" (equivalent to -
dontoptimize), which should turn off everything that might tickle
this. If you're up for experimenting, read the manual, and turn off
individual optimizations until you find the optimization that causes
the trouble. This would be useful info for Fadden together with
your .class files.

I'd say the code/ optimizations are the most likely to be the culprit.

If obfuscation is your primary goal, you may be good to go by just
turning off all optimizations.

On Feb 10, 6:35 pm, sdphil <phil.pellouch...@gmail.com> wrote:
> trying to integrate proguard into my android project.  seems to
> generate a binary, but when I go to run that binary on the device, I
> get --
>
> 02-10 18:31:52.219: INFO/Test(10604): gui.StartScreen.clean shutdown:
> true
> 02-10 18:31:52.229: INFO/Test(10604): gui.StartScreen.intent: false
> 02-10 18:31:52.229: WARN/dalvikvm(10604): VFY: copyRes1 v0<-v7 cat=3
> type=2
> 02-10 18:31:52.229: WARN/dalvikvm(10604): VFY:  rejecting opcode 0x0c
> at 0x0045
> 02-10 18:31:52.229: WARN/dalvikvm(10604): VFY:  rejected Lgl;.a
> (Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/Bitmap;
> 02-10 18:31:52.229: WARN/dalvikvm(10604): Verifier rejected class Lgl;
> 02-10 18:31:52.229: DEBUG/AndroidRuntime(10604): Shutting down VM
>
> It starts up with a black screen and then just seems to hang - finally
> comes up with "Force Close / Wait" dialog (ANR).
>
> It almost seems like it can't get at the resources??
>
> I'm a bit at a loss about what to do...
>
> ideas?
>
> tia.
>
> p.s. please don't respond with the "merits" of using proguard or not...

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to