Failed to Resolve: Com.Android.Support:Appcompat-V7:27.+ (Dependency Error)

Failed to resolve: com.android.support:appcompat-v7:27.0.0

Installing the newest Android Studio version solved the problem

Failed to resolve: com.android.support:appcompat-v7.27.+

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.

Failed to resolve: com.android.support:appcompat-v7:28.0

28.0.0 is the final version of support libraries. Android has migrated to AndroidX. To use the latest android libraries, Migrating to AndroidX


Edit: Versions 28.0.0-rc02 and 28.0.0 are now available.

I don't see any 28.0 version on Google Maven. Only 28.0.0-alpha1 and 28.0.0-alpha3. Just change it to either of those or how it was previously, i.e., with .+ which just means any version under 28 major release.

For an alpha appcompat release 28.+ makes more sense.

Failed to resolve: com.android.support:appcompat-v7:27.1.1

Try this :

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.brazzaqi.myapplication"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation'com.android.support.constraint:constraint-layout:1.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
}

Failed to resolve: com.android.support:appcompat-v7:27.+

You need to add the google maven to your root build.gradle like this:

allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}

For Gradle build tools plugin version 3.0.0, you can use google() repository (more at Migrate to Android Plugin for Gradle 3.0.0):

allprojects {
repositories {
jcenter()
google()
}
}

Failed to resolve: com.android.support:appcompat-v7:27.0.2

Got the solution.
Just
Replace

compile 'com.facebook.android:facebook-android-sdk:[4,5)'

by

compile 'com.facebook.android:facebook-android-sdk:4.26.0'

Failed to resolve: com.android.support:appcompat-v7:30.0.0

It happens because the support libraries v.30 don't exist.

Use the androidx library:

implementation 'androidx.appcompat:appcompat:1.1.0'

or use the last support library:

implementation 'com.android.support:appcompat-v7:28.0.0'


Related Topics



Leave a reply



Submit