Сообщение об ошибке при внедрении firebase в Android Studio

Итак, я пытался реализовать Firebase в Android Studio, и это сообщение об ошибке продолжало появляться.

"Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 16.0.1."

Я знаю, что написано обновить. Но как мне это сделать?

Вот мой build.gradle для проекта

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.example.jbdelosreyes.finalmvp"
        minSdkVersion 19
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0-rc01'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    implementation 'com.google.firebase:firebase-core:16.0.1'
    implementation 'com.google.firebase:firebase-firestore:17.0.4'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}

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

и вот мой build.gradle для модуля

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.example.jbdelosreyes.finalmvp"
        minSdkVersion 19
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0-rc01'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    implementation 'com.google.firebase:firebase-core:16.0.1'
    implementation 'com.google.firebase:firebase-firestore:17.0.4'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}

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

Пожалуйста, редактировать вопрос и разместите здесь файлы build.gradle (файлы Gradle как уровня проекта, так и уровня приложения)

Shashanth 11.08.2018 08:00

Выложите, пожалуйста, свой файл build.gradle.

Farhana Naaz Ansari 11.08.2018 08:05

Здравствуй! извините, я новичок в этом. я отредактировал это сейчас

Another Juan 11.08.2018 09:32
0
3
565
1

Ответы 1

Перейдите в Android SDK и обновите - Сервис Google Play - Репозиторий Google

но нет доступных обновлений. так что я предполагаю, что это уже актуально

Another Juan 11.08.2018 09:33

Если вы компилируете или реализуете свой модуль, в build.gradle (app) вам не нужно вызывать реализацию com.google.firebase: firebase-core: 16.0.1 'implementation' com.google.firebase: firebase-firestore: 17.0 .4 'или Покажите мне свой build.gradle (проект)

Chanh 11.08.2018 11:19

Я не совсем понимаю. но теперь мой build.gradle включен в вопрос. я редактировал это раньше

Another Juan 11.08.2018 13:17

Вы проверяли и пробовали дубликат? это тот же вопрос @AnotherJuan

Peter Haddad 11.08.2018 14:16

дубликат? где я могу увидеть эти дубликаты? или мне ввести этот вопрос в строку поиска?

Another Juan 11.08.2018 14:20

Боже мой, действительно ответ уже был. Спасибо чувак! так я должен удалить этот пост сейчас?

Another Juan 11.08.2018 14:33

Другие вопросы по теме