Skip to content Skip to sidebar Skip to footer

Gradle Build Error In Android Studio 3.1.3.2

Could not find gradle.jar (com.android.tools.build:gradle:3.1.3). Searched in the following locations: https://dl.google.com/dl/android/maven2/com/android/tools/build/grad

Solution 1:

The default gradle install is part of Android Studio sdk so if you moved your Android Studio files location or have the wrong PATH defined in your environment it won't find the sdk location like this. If your path is to a different android studio installation version it might not have that particular version of gradle in it.


Solution 2:

I show my solution in Android 3.2.1. Go to the file gradle-wrapper.properties and the line "distributionUrl" to change the version of gradle that you use, in my case i use "distributionUrl=https://services.gradle.org/distributions/gradle-3.2.1-all.zip" enter image description here

Go to also File -> Setting -> Gradle and Select "Use default gradle wrapper (recommended)" enter image description here

Change also in the buil.gradle(Project:TutorialKotlin) the line "classpath 'com.android.tools.build:gradle:3.2.1'" enter image description here


Post a Comment for "Gradle Build Error In Android Studio 3.1.3.2"