Error: Failed 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

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:design:26.2.0 error in Android Studio

Failed to resolve: com.android.support:design:26.2.0

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

It's simply because the last version of support library 26 is version 26.1.0. You better to use support library version 28.0.0 or either upgrading to AndroidX.



Related Topics



Leave a reply



Submit