Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Artifact 'com.android.tools.build:gradle:0.12.1:gradle.jar' not found on Android Studio 0.8.1

Tags:

android

gradle

I've upgraded to Android Studio 0.8.1 and when I try to compile any app it fails with the following error:

Error:Artifact 'com.android.tools.build:gradle:0.12.1:gradle.jar' not found on Android Studio 0.8.1

I tried to update manually the plugin from gradle.org and it does not contain any gradle.jar binary.

How to resolve this error?

like image 452
Giovanny Velez Avatar asked Jul 01 '14 18:07

Giovanny Velez


Video Answer


2 Answers

File -> Invalidate caches / Restart Shutdown Android Studio Rename/remove .gradle folder in the user home directory Restart Android Studio let it download all the Gradle stuff it needs Gradle build success ! Rebuild project.... success !

like image 95
Leandro Müller Avatar answered Oct 18 '22 00:10

Leandro Müller


Try this:

./gradlew clean build --refresh-dependencies

It worked for me =)

like image 22
Helio Avatar answered Oct 18 '22 01:10

Helio