Failed To Resolve: Com.android.support:appcompat-v7.27.+
I am trying to create a new project in Android Studio, using Nougat 7.0. But, as soon as I open the project I get the following Gradle error: Failed to resolve: com.android.suppor
Solution 1:
Gradle DSL method not found: 'google()'
Set
compileSdkVersion 27
buildToolsVersion "27.0.3"
Make sure added google()
in Your PROJECT LEVEL
build.gradle
section.
allprojects {
repositories {
google()
jcenter()
maven { url 'https://maven.google.com/' }
}
}
It will be better if you set PROPER version.
compile'com.android.support:appcompat-v7:27.1.1'
FYI
Use implementation
instead of compile
. i.e
implementation 'com.android.support:appcompat-v7:27.1.1'
After that, Clean-Rebuild-Run
.
Solution 2:
replace with this
com.android.support:support-compat:27.1.1
Solution 3:
buildToolsVersion "25.0.2" change this to "27.0.0" and everything is going to be correct
Post a Comment for "Failed To Resolve: Com.android.support:appcompat-v7.27.+"