ProGuardGUI需要帮助来混淆我的代码

时间:2017-10-25 18:54:17

标签: proguard bukkit

我想使用proguard来混淆我的插件。 但是,如果我按“处理!”出现此错误:

ProGuard, version 5.3.3
Reading program jar [C:\Users\Nico\Desktop\BlockParty.jar]
Reading library jar [C:\Program Files\Java\jre1.8.0_141\lib\rt.jar]
Reading library jar [C:\Users\Nico\Desktop\spigot-1.8.8.jar]
Reading library jar [C:\Users\Nico\Desktop\worldedit-bukkit-6.1.jar]
Note: duplicate definition of library class [javax.annotation.meta.When]
Warning: class [nmsblocks/CBXNmsBlock_1710.class] unexpectedly contains class [CBXNmsBlock_1710]
Note: there were 1 duplicate class definitions.
  (http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass)
Warning: there were 1 classes in incorrectly named files.
     You should make sure all file names correspond to their class names.
     The directory hierarchies must correspond to the package hierarchies.
     (http://proguard.sourceforge.net/manual/troubleshooting.html#unexpectedclass)
     If you don't mind the mentioned classes not being written out,
     you could try your luck using the '-ignorewarnings' option.
Please correct the above warnings first.

我可以在哪里添加“-ignorewarnings”选项?我正在使用ProGuard GUI。

1 个答案:

答案 0 :(得分:4)

我认为您正在寻找this

另外,您应该阅读有关error及其出现原因的信息。

您可以将-ignorewarnings添加到proguard.cfg中,或者其他解决方案可以添加此内容:

-dontwarn android.databinding.**
-keep class android.databinding.** { *; }