0

我收到以下错误。

[info] Merging inputs before proguard...
[error] /my/project/target/scala-2.10/proguard/merged/LICENSE (Is a directory)
java.lang.RuntimeException: Failed to merge all inputs. Merge strategies can be used to resolve conflicts.

...

[error] (proguard:mergedInputs) Failed to merge all inputs. Merge strategies can be used to resolve conflicts.

更多细节...)

我已经尝试了以下...

ProguardKeys.merge in Proguard := true
ProguardKeys.mergeStrategies in Proguard += ProguardMerge.discard("license/.*".r)

ProguardKeys.merge in Proguard := true
ProguardKeys.mergeStrategies in Proguard += ProguardMerge.append("license")

以上都不起作用。合并策略有什么问题吗?

谢谢你。

4

1 回答 1

0
ProguardKeys.mergeStrategies in Proguard += ProguardMerge.rename("LICENSE.*".r)

rename() 完成了工作~!

于 2016-09-27T15:38:36.570 回答