Tuesday, May 15, 2012

[android-developers] Debugging Proguard build

How do you debug a release build that was built with Proguard? My app
runs fine in the debug configuration and it runs fine in the release
configuration too, as long as I don't enable Proguard. I need it for
obfuscation only, so I have set:

-dontoptimize
-dontshrink

But when I install my release build with Proguard on a device it stops
with the "stopped unexpectedly" message. I don't know how to tell
what might be causing this because I don't have access to the usual
debug info. Is there some way I can retrieve a stack trace off of the
device after my app has crashed? Or is there some way to run the
release configuration with the debugger connected?

--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate