Dexguard与Android开发中的其他插件冲突

时间:2014-11-13 04:38:07

标签: android proguard android-gradle dexguard

我一直在为我的Android项目使用Dexguard,它一直工作正常,直到最近我不得不使用另一个插件。因为构建其他插件的方式,要求项目应用" com.android.application"或" com.android.library"。但由于dexguard插件是com.android.application的扩展,后者被dexguard取代,我无法使用需要" android"的其他插件。插件。

//apply plugin: 'android'
apply plugin: 'dexguard'

有没有人知道是否有办法解决这个问题?我已经联系了该插件的作者,但是为每个插件作者提供解决方案是不切实际的。


参考我的问题:

Dexguard plugin specification

我的plugin (android-apt)尝试使用该版本需要插件:Android,只有Android而不是dexguard。

1 个答案:

答案 0 :(得分:0)

最新的DexGuard插件(6.1.03)与Android插件(1.0.0)一起使用,而不是扩展它。这应该可以提高与其他第三方插件的兼容性。