Always Learner
Always Learner

Reputation: 3016

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!

Upvotes: 5

Views: 708

Answers (1)

0xAliHn
0xAliHn

Reputation: 19280

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"
}

Upvotes: 1

Related Questions