Android Studio Keeps Refusing to Resolve Com.Android.Support:Appcompat-V7:29.0.1

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

IMAGE

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



Leave a reply



Submit