Android Studio keeps refusing to resolve com.android.support:appcompat-v7:29.0.1
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:
- Use the last 28.0.0 release of the support library
- migrate to androidx
Also check this note:
Note: With the release of Android 9.0 (API level 28) there is a new version of the support library called AndroidX which is part of Jetpack. The AndroidX library contains the existing support library and also includes the latest Jetpack components.
You can continue to use the support library. Historical artifacts (those versioned 27 and earlier, and packaged as android.support.*) will remain available on Google Maven. However, all new library development will occur in the AndroidX library.
We recommend using the AndroidX libraries in all new projects. You should also consider migrating existing projects to AndroidX as well.
ERROR: Failed to resolve: com.android.support:appcompat-v7:29.0.1'
Migrate to androidX
by going to:
Refactor->Migrate to androidX
Could not find any version that matches com.android.support:appcompat-v7:29.+
Try migrating to Androidx
Android Studio > Refactor Menu > Migrate to AndroidX...
From docs:
With the release of Android 9.0 (API level 28) there is a new version
of the support library called AndroidX which is part of Jetpack. The
AndroidX library contains the existing support library and also
includes the latest Jetpack components.You can continue to use the support library. Historical artifacts
(those versioned 27 and earlier, and packaged as android.support.*)
will remain available on Google Maven. However, all new library
development will occur in the AndroidX library.We recommend using the AndroidX libraries in all new projects. You
should also consider migrating existing projects to AndroidX as well.
How do I fix this error in Android Studio if I have already added the Google Maven repository?
It happens because com.android.support:appcompat-v7:29.x.x
doesn't exist.
You can check the revision history.
Also:
Note: With the release of Android 9.0 (API level 28) there is a new version of the support library called AndroidX which is part of Jetpack. The AndroidX library contains the existing support library and also includes the latest Jetpack components.
You can continue to use the support library. Historical artifacts (those versioned 27 and earlier, and packaged as android.support.*) will remain available on Google Maven. However, all new library development will occur in the AndroidX library.
We recommend using the AndroidX libraries in all new projects. You should also consider migrating existing projects to AndroidX as well.
Related Topics
How to Save Recyclerview'S Scroll Position Using Recyclerview.State
How to Use Arrayadapter≪Myclass≫
Set Icon For Android Application
Difference and Uses of Oncreate(), Oncreateview() and Onactivitycreated() in Fragments
Android - Camera Preview Is Sideways
Error "The Connection to Adb Is Down, and a Severe Error Has Occurred."
Activity Ondestroy Never Called
Convert View to Bitmap on Android
Single Textview with Multiple Colored Text
What Android Tools and Methods Work Best to Find Memory/Resource Leaks
How to Animate Recyclerview Items When They Appear
How to Pass Data from 2Nd Activity to 1St Activity When Pressed Back? - Android
Include .So Library in APK in Android Studio
Using Zxing to Create an Android Barcode Scanning App
Resources$Notfoundexception: Resource Is Not a Drawable (Color or Path)