【发布时间】:2016-06-17 17:54:12
【问题描述】:
我有一个 jar 文件,我想用 ProGuard 混淆它。所有库都放入 jar 文件中,我想从混淆中排除库。当我尝试混淆时,我收到以下错误:
Unexpected error while performing partial evaluation:
Class = [com/google/common/cache/LongAddables]
Method = [<clinit>()V]
Exception = [java.lang.IllegalArgumentException] (Can't find common super class of [com/google/common/cache/LongAddables$2] (with 1 known super classes) and [com/google/common/cache/LongAddables$1] (with 1 known super classes))
Error: Can't find common super class of [com/google/common/cache/LongAddables$2] (with 1 known super classes) and [com/google/common/cache/LongAddables$1] (with 1 known super classes)
我的配置是这样的;
-injars E:\project\celrond\out\artifacts\celrond-build.jar
-outjars E:\project\celrond\out\artifacts\celrond-build_obf.jar
-keep class com.google.** { *; }
-keep class org.h2.** { *; }
-keep class org.apache.** { *; }
-keep class com.sun.** { *; }
-keep class com.j256.** { *; }
-keep class org.eclipse.** { *; }
-keep class com.ibm.** { *; }
-keep public class celrond.MyMain {
public static void main(java.lang.String[]);
我找不到我的错误,任何帮助都会很棒!
【问题讨论】:
标签: java proguard obfuscation