Gradle issue when upgrading from 0.14.0 to 1.0.0

I just updated my android studio from 1.0 RC 2 to 1.0.1.

After that, I was prompted to update the gradle plugin from 0.14.0 to 1.0.0.

Once I did that, gradle build fails with erro -

Error:No such property: GRADLE_SUPPORTED_VERSIONS for class: com.saikoa.dexguard.h

      

Has anyone else faced similar problems? Thanks a ton!

My build.gradle -

buildscript {
repositories {
    flatDir { dirs '../lib' } // For the DexGuard plugin.
    mavenCentral()               // For the Android plugin.

}
dependencies {
    classpath ':dexguard:'
    classpath 'com.android.tools.build:gradle:1.0.0'
}
}

apply plugin: 'dexguard'
android {
buildTypes {
    release {
        proguardFiles getDefaultDexGuardFile('dexguard-release.pro'),'dexguard-project.txt'
    }
    debug{
        //proguardFiles getDefaultDexGuardFile('dexguard-release.pro'),'dexguard-project.txt'
        proguardFiles getDefaultDexGuardFile('dexguard-debug.pro'),'dexguard-project.txt'
    }
}
}

      

+3


source to share


1 answer


For Android Plugin 1.0. + you need to make sure you are using the DexGuard 6.1 plugin. +.

Then you need to apply both plugins:



apply plugin: 'com.android.application'
apply plugin: 'dexguard'

      

Finally, Android Plugin 1.0.0 requires Gradle 2.2.1.

+5


source







All Articles