Android Studio How to Check and Update Gradle Version

October 5, 2018

Gradle

To Update Gradle, goto File -> Project Structure -> Project.

Else, you could edit gradle-wrapper.properties.

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

To check for latest Gradle version: https://services.gradle.org/distributions/

Android Gradle

To Update Android Gradle, goto File -> Project Structure -> Project.

Else, you could edit Project build.gradle.

buildscript {
    repositories {
      ...
    }

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

To check for latest Android Gradle version: https://mvnrepository.com/artifact/com.android.tools.build/gradle?repo=google

Android Gradle plugin vs Gradle

The Android Studio build system is based on Gradle, and the Android Gradle plugin adds several features that are specific to building Android apps. Although the Android plugin is typically updated in lock-step with Android Studio, the plugin (and the rest of the Gradle system) can run independent of Android Studio and be updated separately. - Source

References:

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.