错误:修复版本冲突(Google服务插件)

时间:2018-07-12 10:16:15

标签: java android gradle

当我同步项目时,会给我错误,即

请通过更新google-services插件的版本或将com.google.android.gms的版本更新为16.0.0来解决版本冲突。

 android {
        compileSdkVersion 27
        defaultConfig {
            applicationId "www.androidghost.com.batteryalarm"
            minSdkVersion 15
            targetSdkVersion 27
            testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }
    allprojects {
        repositories {
            jcenter()
            maven { url "https://jitpack.io" }
        }
    }
    dependencies
            {
        implementation fileTree(dir: 'libs', include: ['*.jar'])
        androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
            exclude group: 'com.android.support', module: 'support-annotations'
        })

        implementation 'com.google.firebase:firebase-config:16.0.0'
        implementation 'com.google.firebase:firebase-core:16.0.1'
        implementation 'com.android.support:appcompat-v7:27.1.1'
        implementation 'com.android.support.constraint:constraint-layout:1.1.2'
        implementation 'com.google.android.gms:play-services-ads:15.0.1'
        implementation 'com.google.firebase:firebase-messaging:17.1.0'
        implementation 'com.android.support:design:27.1.1'
        implementation 'com.squareup.picasso:picasso:2.5.2'
        implementation 'com.android.support:recyclerview-v7:27.1.1'
        implementation 'com.android.support:multidex:1.0.3'
        implementation 'com.facebook.android:audience-network-sdk:4.28.2'
        implementation 'me.itangqi.waveloadingview:library:0.3.5'
        implementation 'com.android.support:support-v4:27.1.1'
        implementation 'com.android.support:cardview-v7:27.1.1'
        testImplementation 'junit:junit:4.12'
        }
    }
    apply plugin: 'com.google.gms.google-services'

0 个答案:

没有答案