Я пытаюсь построить этот проект Быстрый запуск базы данных Firebase , но я сталкиваюсь с ошибкой в уровне приложения build.gradle
файла.
Вот мое сообщение об ошибке
![Error Message](https://i.stack.imgur.com/XNCIo.png)
Поиском google
и stackoverflow
я нашел какое-то решение, затем я добавил эту строку 'com.google.android.gms:play-services-auth:15.0.1'
в мой файл gradle, чтобы моя ошибка уменьшилась с 6 до 3.
Сообщение об ошибке после добавления 'com.google.android.gms:play-services-auth:15.0.1'
![enter image description here](https://i.stack.imgur.com/zAeS9.png)
Теперь я не могу исправить эту ошибку.
Мои Сервисы Google Play и Репозиторий Google версия обновлена и maven { url "https://maven.google.com" }
уже добавлена ранее на уровне проекта build.gradle.
Вот мой Уровень приложения Файл Gradle:
apply plugin: 'com.android.application'
check.dependsOn 'assembleDebugAndroidTest'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.google.firebase.quickstart.database"
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.debug
}
}
}
configurations.all {
resolutionStrategy.force 'com.android.support:support-annotations:27.1.1'
}
dependencies {
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.firebaseui:firebase-ui-database:4.0.0'
implementation 'com.google.android.gms:play-services-auth:15.0.1'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-auth:16.0.2'
implementation 'com.google.firebase:firebase-database:16.0.1'
// Needed to fix a dependency conflict with FirebaseUI'
implementation 'android.arch.core:runtime:1.1.1'
// Needed to fix a dependency conflict with FirebaseUI'
implementation 'android.arch.core:runtime:1.1.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
androidTestImplementation 'com.android.support.test:rules:1.0.2'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
}
apply plugin: 'com.google.gms.google-services'