Dexguard conflicting with other plugins in Android development

377 views Asked by At

I have been using Dexguard for my Android project, and it's been working fine until recently I had to use a another plugin. Because the way the other plugin is built, it is required that the project applies either "com.android.application" or "com.android.library". but since the dexguard plugin is an extension of the com.android.application which got replaced by dexguard, I can't use the other plugins that requires the "android" plugin.

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

Does anyone know if there's a way to get around this? I have contacted the authors of the plugin but it won't be practical to bother every plugin author for a solution.


Reference to my problem:

Dexguard plugin specification

And here's the plugin (android-apt) I'm trying to use that requires plugin: Android and only Android not dexguard.

1

There are 1 answers

0
Eric Lafortune On

The latest DexGuard plugin (6.1.03) works alongside the Android plugin (1.0.0), instead of extending it. This should improve its compatibility with other third-party plugins.