Proguard returns with error code 1. (Proguard errors with untii-classes.jar)

I am trying to run proguard in an Android project containing classes.jar (library from Unity3d software) in an attachment. I have a mistake:

[2014-03-04 15:28:55 - Test0289_0304] Proguard returned with error code 1. See console [2014-03-04 15:28:55 - Test0289_0304] Error: Can't read [F:\140303\Test0289_0304\lib\untiy-classes.jar] (Can't process class [com/unity3d/player/UnityPlayer.class] (Unknown verification type [251] in stack map frame)) 

I add one line to proguard-project.txt:

  -libraryjars lib/untiy-classes.jar 

I am using proguard 4.11.

+2
android unity3d proguard
source share
1 answer

This is a problem with classes in the Unity library: some preverification metadata is corrupted. You should check if there is a newer version. Otherwise, you can modify ProGuard to accept corrupt classes as described in problem tracking .

Note that you should not add -libraryjars or -injars to your configuration. The Android build process (Ant, Eclipse, Gradle) already defines these options for you.

+1
source share

All Articles