Proguard的错误code返回(与untiy-classes.jar Proguard的错误)1。 [英] Proguard returned with error code 1. (Proguard errors with untiy-classes.jar)
问题描述
我尝试在Android项目中运行ProGuard的包含attachement classes.jar(从Unity3d软件库)。我有错误:
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))
我添加一个行的ProGuard-project.txt:
I add one line in proguard-project.txt:
-libraryjars lib/untiy-classes.jar
我用proguard的4.11。
I use proguard 4.11.
推荐答案
这是在Unity库中的类的一个问题:一些preverification元数据已损坏。您应该检查是否有更新的版本。否则,你可以修改的ProGuard接受腐败的阶级,其问题跟踪所讨论
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.
请注意,你不应该添加-libraryjars或-injars到您的配置。 Android的构建过程(蚂蚁,Eclipse的摇篮)已经规定了你的选择。
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.
这篇关于Proguard的错误code返回(与untiy-classes.jar Proguard的错误)1。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!