ОШИБКА: невозможно разрешить зависимость для ':app@debug/compileClasspath': не удалось разрешить com.google.firebase: база данных firebase: 19.2.1 - PullRequest
0 голосов
/ 21 апреля 2020

применить плагин: 'com. android .application' применить плагин: 'com.google.gms.google-services'

android {compileSdkVersion 28 buildToolsVersion "29.0.3"

defaultConfig {
    applicationId "com.example.firebaseapp"
    minSdkVersion 21
    targetSdkVersion 28
    versionCode 1
    versionName "1.0"

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}

}

зависимости {реализация fileTree (dir: 'libs', включает: ['* .jar'])

implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.firebase:firebase-database:19.2.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

}

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