I followed every step to setup new GRADLE
version.
I already had v2.1
and to update, I downloaded v4.1
Then, I unpacked it into a directory and move all data into the following directory:
C:\Program Files\Android\Android Studio1\gradle\gradle-4.1
In File->Settings->Build->Gradle tab I put that path as the value for Use local gradle distribution
Then added extra environment variable GRADLE_HOME
with the value = same folder name.
Also, I've added the dir to the variable path
.... Now when I run Android Studio, it says:
Error:A problem occurred configuring root project 'Empty'.
Could not resolve all dependencies for configuration ':classpath'. Could not find com.android.tools.build:gradle:4.1. Searched in the following locations: file:/C:/Program Files/Android/Android Studio1/gradle/m2repository/com/android/tools/build/gradle/4.1/gradle-4.1.pom file:/C:/Program Files/Android/Android Studio1/gradle/m2repository/com/android/tools/build/gradle/4.1/gradle-4.1.jar https://jcenter.bintray.com/com/android/tools/build/gradle/4.1/gradle-4.1.pom https://jcenter.bintray.com/com/android/tools/build/gradle/4.1/gradle-4.1.jar Required by: enter code here project :