我在Android Studio中遇到此错误:

这是我的build.gradle文件的依赖项:

dependencies {
        compile 'com.firebaseui:firebase-ui:0.6.0'
        implementation fileTree(dir: 'libs', include: ['*.jar'])
        implementation 'androidx.appcompat:appcompat:1.0.2'
        implementation 'com.google.firebase:firebase-core:17.0.0'
        implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
        implementation 'com.google.firebase:firebase-messaging:17.3.4'
        testImplementation 'junit:junit:4.12'
        androidTestImplementation 'androidx.test:runner:1.2.0'
        androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
        implementation 'com.google.android.gms:play-services-location:16.0.0'
        implementation 'com.google.firebase:firebase-auth:18.0.0'
        implementation 'com.google.android.material:material:1.0.0'
        implementation 'com.google.firebase:firebase-database:18.0.0'
        implementation 'com.android.support:design:27.1.1'
    }
我尝试将 com.android.support:design 添加到gradle文件中,但仍然不能解决我的问题

最佳答案

试试这个:

com.google.android.material:material:1.0.0-rc01

代替
com.android.support:design

10-08 09:29