I have a problem with android studio. I will create a new project (without changing the parameter, just the next one), then I encounter these problems.
Asked
Active
Viewed 1,631 times
-4
-
4Possible duplicate of [Failed to resolve: com.android.support:appcompat-v7:26.0.0](https://stackoverflow.com/questions/45357000/failed-to-resolve-com-android-supportappcompat-v726-0-0) – ישו אוהב אותך Dec 12 '17 at 04:34
2 Answers
0
Go to your Project level build.gradle
and add this after that sync
allprojects {
repositories {
jcenter()
google()
}
}

Abhishek Singh
- 9,008
- 5
- 28
- 53
0
From version 26.0.0 of support libraries make sure that the repositories section includes a maven section with the "https://maven.google.com" endpoint.
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
For Gradle build tools plugin version 3.0.0, you can use google() repository:
allprojects {
repositories {
jcenter()
google()
}
}

Gowtham Subramaniam
- 3,358
- 2
- 19
- 31