Android Studio keeps refusing to resolve com.android.support:appcompat-v7:29.0.1

前端 未结 5 2194
星月不相逢
星月不相逢 2020-11-22 07:32

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:2

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-22 08:22

    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.

提交回复
热议问题