Я не знаю, где моя ошибка в appcompat: design: 1.1.0 - PullRequest
1 голос
/ 21 января 2020

appcompat: design: 1.1.0

Я не знаю, где ошибка. Вероятно, на appcompat:design:1.1.0, но не знаю, что я сделал не так. Я новенький, кстати:)

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.2"
    defaultConfig {
        applicationId "com.example.myapplication"
        minSdkVersion 15
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}


dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.appcompat:design:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'com.google.firebase:firebase-auth:19.2.0'
    implementation 'com.google.firebase:firebase-database:19.2.0'
    implementation 'com.google.firebase:firebase-storage:19.1.0'
    testImplementation 'junit:junit:4.13'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}

1 Ответ

1 голос
/ 22 января 2020

Библиотека androidx.appcompat:design не существует .

Удалить эту зависимость:

implementation 'androidx.appcompat:design:1.1.0'

и добавить Библиотека компонентов материалов .

Компоненты материалов для Android являются заменой для Android библиотеки поддержки проектирования.

Добавьте одну из следующих зависимостей:

implementation 'com.google.android.material:material:1.0.0' //stable release
implementation 'com.google.android.material:material:1.1.0' //stable release
implementation 'com.google.android.material:material:1.2.0-alpha03' //alpha release
...