android .support.design.widget.CoordinatorLayout ошибка - PullRequest
0 голосов
/ 17 июня 2020

Как исправить эту красную линию? android .support.design.widget.CoordinatorLayout error я что-то пропустил в своих зависимостях?

enter image description here

enter image description here

this is my dependencies 

dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
    implementation 'androidx.core:core-ktx:1.3.0'
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'com.google.android.material:material:1.1.0'
    implementation 'androidx.recyclerview:recyclerview:1.1.0'
    implementation 'androidx.coordinatorlayout:coordinatorlayout:1.1.0'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    testImplementation 'junit:junit:4.13'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

    implementation 'com.squareup.retrofit2:retrofit:2.9.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
}

1 Ответ

1 голос
/ 17 июня 2020

Вам необходимо использовать androidx компонент

Используйте

<androidx.coordinatorlayout.widget.CoordinatorLayout

Вместо

<android.support.design.widget.CoordinatorLayout

Используйте

<androidx.recyclerview.widget.RecyclerView

Вместо

<android.support.v7.widget.RecyclerView

Используйте

<com.google.android.material.appbar.AppBarLayout
<androidx.appcompat.widget.Toolbar

Вместо

<android.support.design.widget.AppBarLayout
<android.support.v7.widget.Toolbar

Для FloatingActionButton используйте

<com.google.android.material.floatingactionbutton.FloatingActionButton
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...