在Android Studio上实现firebase时出现错误消息

在Android Studio上实现firebase时出现错误消息,android,firebase,android-studio,Android,Firebase,Android Studio,所以我试图在Android Studio上实现Firebase,但这个错误消息不断出现 “请通过更新google services插件的版本(有关最新版本的信息,请访问)或将com.google.android.gms的版本更新为16.0.1来修复版本冲突。” 我知道上面说要更新它。但我该怎么做呢 这是我的build.gradle,用于该项目 apply plugin: 'com.android.application' android { compileSdkVersion 28

所以我试图在Android Studio上实现Firebase,但这个错误消息不断出现

“请通过更新google services插件的版本(有关最新版本的信息,请访问)或将com.google.android.gms的版本更新为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'

转到Android SDK并更新 -谷歌播放服务
-Google Repository

请回答问题并在此处发布
build.gradle
文件(项目级和应用程序级gradle文件)请发布您的
build.gradle
文件。您好!对不起,我是新来的。我现在已经编辑过了,但是没有可用的更新。所以我假设它已经是最新的,如果你编译或实现你的模块,在build.gradle(应用程序)中,你不需要调用实现'com.google.firebase:firebase core:16.0.1'实现'com.google.firebase:firebase firestore:17.0.4'或显示你的build.gradle(项目),我不太明白。但是我的build.gradle现在已经包括在问题中了。我很早就编辑好了你有没有检查并尝试复制?这是同一个问题@AnotherJuanomg其实已经有答案了。谢谢你,伙计!那么我现在应该把这篇文章取下来吗?