Update Android Studio to version 3.1

I just updated my Android studio to the latest version 3.1, and I can not do anything due to 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'.

He also says:

Gradle project sync failed.

This is what my error looks like:

enter image description here

and

enter image description here

Thank!

+4
source share
1 answer

You can add below changes to your gradle project to depend on maven and try either it works or not.

ext.androidAnnottationVersion = 'version here'

dependencies {
    apt "org.androidannotations:androidannotations:$androidAnnottationVersion"
    compile "org.androidannotations:androidannotations-api:$androidAnnottationVersion"
}
+1
source

Source: https://habr.com/ru/post/1695401/


All Articles