Could not find builder.jar (com.android.tools.build:builder:3.1.0)

Salim13i :

I wanted to Setting up android studio, i have installed the latest version(3.1.0) of it and i downloaded and installed the latest version of gradle(4.6) and created a new object. but gradle project sync failed. and shown up the error :

Could not find builder.jar (com.android.tools.build:builder:3.1.0). Searched in the following locations: https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.1.0/builder-3.1.0.jar

screenshot

I Couldn't find such problem with the others.

  1. is it related to android sdk or gradle version?
  2. is there any solution to download it manually and place it in the location??if it's possible , where is the location ,that i can put the builder-3.1.0.jar file.
Hamed Ahmadi :

Go to File>Setting>Build,Execution,Deployment>Gradle>Android Studio>> and Check mark this:: Enable Embedded repository and Click Ok. Then, Rebuild the Project.

or

go to Terminal and type "gradlew cleanBuildCache" to clear the cache. The cache is in USERNAME.ANDROID\BUILD CACHE Directory.

And Rebuild.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=432883&siteId=1