Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.
like image 761
Salim13i Avatar asked Apr 12 '18 09:04

Salim13i


1 Answers

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.

like image 181
Hamed Ahmadi Avatar answered Sep 19 '22 09:09

Hamed Ahmadi