I installed Android Studio for the first time (2021.3.1.17) and proceeded to import an Eclipse/ADT project of mine.
The import of the project itself seems to have gone well, but I received the following error:
Could not find com.android.tools.build:gradle:7.3.1.
Searched in the following locations:
- https://jcenter.bintray.com/com/android/tools/build/gradle/7.3.1/gradle-7.3.1.pom
I added to the project's build.gradle
the following:
maven {
url "https://maven.google.com"
}
so that it now has:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
}
}
allprojects {
repositories {
maven {
url "https://maven.google.com"
}
jcenter()
}
}
But I am still getting this error.
What am I missing? How can I fix this?