Reputation: 343
This is actually a two-parter (let me know if I should split the question). I am using Intellij as an IDE. The build works completely fine if I run from that. When I use ant, however, things start to mess up.
In the process of writing an automated test for my app, I have discovered two things: First, dexguard runs when I ant clean debug
. Second, when I do this, I get the following error, but the build completes "successfully":
[dexguard] Unexpected error while converting:
[dexguard] Class = [com/framework/notification/NotificationDetailBuilder]
[dexguard] Method = [getScheduledNotificationDetail()Lcom/framework/base/notification/NotificationDetail;]
[dexguard] Exception = [java.lang.IllegalStateException] (Negative variable v-1 for instruction [iget v-1, v0, field_12165])
[dexguard] at com.saikoa.dexguard.fS.b(dexGuard:1219)
etc. etc.
So first off, what dumb thing did I do to get dexguard to run during debug.
And Second, what in the world does this error even mean?
Upvotes: 1
Views: 1188
Reputation: 45676
In the standard Android build process, ProGuard is only applied for release builds. DexGuard is integrated more tightly in the build process; it is applied for debug builds and for release builds. You can reach me at saikoa.com to investigate the message that you get. The first step will be to make sure that you are using the latest version of DexGuard.
(I am the developer of ProGuard and DexGuard)
Upvotes: 1