Problems occuring with ProGuard Obfuscater and com/unity3d/player/UnityPlayer.class

Hi there,

I’m using Unity as an Android View in my app. When I try to use ProGuard to obfuscate the source code I’m getting several errors caused by the classes.jar library of the UnityPlayer:

java.io.IOException: Can’t read [myUnityLibProject/classes.jar] (Can’t process class [com/unity3d/player/UnityPlayer.class] (Unknown verification type [230] in stack map frame))

Has anybody encountered this problem and maybe knows a solution?

Having the same problem. For some reason proguard has a problem with classes.jar provided by Unity. I have marked:

-keep class com.unity3d.** { ; }
-keep class org.fmod.
* { *; }

and also tried disabling different optimization configurations for proguard that are known to cause problems sometimes.

Has anyone figured it out, or is the Unity classes.jar just somehow corrupted?

I have found some QNA here :
https://sourceforge.net/p/proguard/bugs/420/
Hope this help you.