Friday, December 11, 2015

Clash of Gradle classes for different versionsin #Android Studio - inactive functions


If your gradle path in Project Properties is pointing to one version of gradle like gradle 2.4


And the gradle wrapper file, gradle-wrapper.properties
in gradle/wrapper folder

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip

there will be clash.

Result- You will not be able to see active gradle function links in build.gradle.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {

        classpath 'com.android.tools.build:gradle:1.3.0'
        classpath 'org.robolectric:robolectric-gradle-plugin:0.14.+'
        classpath 'com.jakewharton.hugo:hugo-plugin:1.1.0'
    }
}

If you Press Command+ Mouse Over on "buildscript" in build.gradle, you will not see an active link.

No comments:

Post a Comment