Proguard returned with error code 1. (Proguard errors with untiy-classes.jar)

北慕城南 提交于 2020-01-04 09:25:32

问题


I try to run proguard on an Android project contain classes.jar (library from Unity3d software) in attachement. I have error:

    [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 in proguard-project.txt:

 -libraryjars lib/untiy-classes.jar

I use proguard 4.11.


回答1:


This is an issue with the classes in the Unity library: some of the preverification metadata are corrupt. You should check if there is a more recent version. Otherwise, you could modify ProGuard to accept the corrupt classes, as discussed on its issue tracker.

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



来源:https://stackoverflow.com/questions/22165902/proguard-returned-with-error-code-1-proguard-errors-with-untiy-classes-jar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!