安装了Firebase的Android Studio 2.1.2无效

Hai*_*ous 1 android firebase google-play-services

每当我尝试启动firebase时,总会出现这些错误

W/GooglePlayServicesUtil: Google Play services out of date.  Requires 11020000 but found 8489470
W/FA: Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
E/FA: Discarding data. Failed to send app launch
E/FA: Failed to get app instance id
E/FA: Failed to send current screen to service
E/FA: Discarding data. Failed to send event to service
Run Code Online (Sandbox Code Playgroud)

我得到的是与Google Play服务相关的内容,但我无法弄清楚如何修复它,我正在运行Android Studio 2.1.2并且SDK中没有Google Play服务的更新

编辑:我的应用程序Gradle(我正在使用模拟器)

    apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    buildToolsVersion "26.0.0"

    defaultConfig {
        applicationId "com.example.sc.voxcinemascamp"
        minSdkVersion 15
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:26.0.0-alpha1'
    compile 'com.google.firebase:firebase-core:11.0.2'

}

apply plugin: 'com.google.gms.google-services'
Run Code Online (Sandbox Code Playgroud)

use*_*216 5

所以,现在很清楚.您需要更新模拟器以在其上安装Play Services 11,或者降级您的firebase依赖项以匹配模拟器上安装的Google Play服务.

我宁愿建议更新模拟器,也不要因为模拟器而降级应用中使用的Play服务.