在 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,但它不会打印更多信息。
答案 0 :(得分:0)
在project.properties中,我有:
proguard.config=proguard-project.txt
而不是正确的输入:
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
愚蠢的错误!但很难跟踪“混淆”的Proguard消息:)