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

前端 未结 5 2198
星月不相逢
星月不相逢 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:24

    // migrating existing projects to AndroidX

    //@link::https://developer.android.com/topic/libraries/support-library/packages

    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.

    AndroidX libraries in all new projects. You should also consider migrating existing projects to AndroidX as well.

    Android Studio

    GO TO Refactor >> Refactor this >> migarat to AndroidX

    The following table lists the current mappings from the old support library packages to the new androidx packages.

    @link https://developer.android.com/jetpack/androidx/migrate/class-mappings @link https://developer.android.com/jetpack/androidx/migrate/artifact-mappings

    Each version of an AndroidX library passes through four release channels while being developed.

    @link https://developer.android.com/jetpack/androidx/versions/all-channel

提交回复
热议问题