Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle issue when upgrading from 0.14.0 to 1.0.0

I've just upgraded 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 is failing with erro -

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

Has anyone else faced similar issues? 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'
    }
}
}
like image 993
Tushar Nallan Avatar asked Dec 05 '25 08:12

Tushar Nallan


1 Answers

For the Android plugin 1.0.+, you should make sure that your are using DexGuard plugin 6.1.+.

You then need to apply both plugins:

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

Finally, the Android plugin 1.0.0 requires Gradle 2.2.1.

like image 97
Eric Lafortune Avatar answered Dec 07 '25 21:12

Eric Lafortune



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!