I have already referred to this thread but it does not resolve my issue.
I keep getting the error:
ERROR: Failed to resolve: com.android.support:appcompat-v7:29.0.1
in Android Studio every time I try to refresh Gradle.
Here is my build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "29.0.1"
defaultConfig {
applicationId "com.application.app"
minSdkVersion 14
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:29.0.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
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'
}
How can I fix it and also is there a website where all the version of all the android modules are listed? I could not find any myself.
Thanks.
Replace
implementation 'com.android.support:appcompat-v7:29.0.1'
withimplementation 'androidx.appcompat:appcompat:1.0.2'
It happens because
com.android.support:appcompat-v7:29.x.x
doesn't exist.You can check the revision history in the official doc.
You can:
Also check this note:
There is no support library for 29 you have to use
androidx
support library packages for new developmentsfrom the Docs
I suggest you migrate to AndroidX
Go to Refactor > Migrate to AndroidX > Migrate
com.android.support:appcompat-v7:29.0.1
doesn't exist