Android 请通过更新google服务插件的版本来修复版本冲突?

Android 请通过更新google服务插件的版本来修复版本冲突?,android,android-studio,android-gradle-plugin,Android,Android Studio,Android Gradle Plugin,因此,我创建了一个谷歌地图活动,它正在工作。连上火场后,一切都完了。我不确定在这里发布什么,但下面是我的版本。gradle: apply plugin: 'com.android.application' android { compileSdkVersion 27 defaultConfig { applicationId "com.example.tagpi.prototypev3" minSdkVersion 21 targ

因此,我创建了一个谷歌地图活动,它正在工作。连上火场后,一切都完了。我不确定在这里发布什么,但下面是我的版本。gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "com.example.tagpi.prototypev3"
        minSdkVersion 21
        targetSdkVersion 27
        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:27.1.1'
    implementation 'com.google.android.gms:play-services-maps:15.0.1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    implementation 'com.google.firebase:firebase-database:16.0.1'
    implementation 'com.google.firebase:firebase-core:16.0.1'

    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'
你们能教我怎么修吗?我刚刚开始学习如何创建移动应用程序

谢谢

史密斯探员

你应该使用这些

implementation 'com.google.android.gms:play-services-maps:15.0.1'
implementation 'com.google.firebase:firebase-database:15.0.1'
implementation 'com.google.firebase:firebase-core:15.0.1'

可能重复尝试将
play services maps
更改为
16.0.1
,反之亦然。@com.google.android.gms:play services maps:16.0.1。此play services maps是创建新地图时的默认配置activity@JaydipKalkani我会检查你的链接。谢谢你的推荐btw@JaydipKalkani我已经检查了你提供的链接。Android Studio和SDK管理器都已更新。奇怪的是,在我连接firebase之前,一切都很正常。我从一个默认的MapActivity开始,并将其连接到google。我已经测试过了,它可以正常工作。但在使用firebase assistant连接到数据库后,一切都不再工作。