代码之家  ›  专栏  ›  技术社区  ›  ColorMyChicken

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

  •  1
  • ColorMyChicken  · 技术社区  · 7 年前

    我想用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.
    

    1 回复  |  直到 7 年前
        1
  •  4
  •   Florian Zaskoku    7 年前

    我想你在找 this

    你也应该阅读 error 以及它为什么会出现。

    您可以添加 -ignorewarnings

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