“必须在[proguard.optimize.peephole.ClassMerger]中覆盖方法,如果曾在Android中调用过”

时间:2014-01-08 14:58:52

标签: java android eclipse proguard

Eclipse 上导出 Android 应用时出现以下错误。

Proguard returned with error code 1. See console
Note: there were 157 duplicate class definitions.
You should check if you need to specify additional program jars.
Error: Method must be overridden in [proguard.optimize.peephole.ClassMerger] if ever called

知道是什么原因引起的吗? ClassMerger错误消息是否与上面的重复类定义警告有关?

What causes this error in Proguard: "Method must be overridden in [proguard.optimize.peephole.ClassMerger] if ever called"?所述,尝试删除所有-dontwarns,但它不会打印更多信息。

1 个答案:

答案 0 :(得分:0)

在project.properties中,我有:

proguard.config=proguard-project.txt

而不是正确的输入:

proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

愚蠢的错误!但很难跟踪“混淆”的Proguard消息:)