Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio update to version 3.1 error

I just updated my Android Studio to the lastest version 3.1 and I cannot do anything because of the following error:

org.gradle.internal.resource.transport.http.HttpRequestException: Could not HEAD 'https://dl.google.com/dl/android/maven2/org/jetbrains/annotations/13.0/annotations-13.0.pom'.

It is also saying:

Gradle project sync failed.

This is how my error looks like:

enter image description here

And

enter image description here

Thanks!

like image 694
Joan P. Avatar asked Nov 07 '22 09:11

Joan P.


1 Answers

You could add below changes in your project gradle for maven dependency and try either it works or not.

ext.androidAnnottationVersion = 'version here'

dependencies {
    apt "org.androidannotations:androidannotations:$androidAnnottationVersion"
    compile "org.androidannotations:androidannotations-api:$androidAnnottationVersion"
}
like image 68
0xAliHn Avatar answered Nov 15 '22 06:11

0xAliHn