错误:任务':app:processDebugGoogleServices'执行失败。 >找不到包名com.xxx.xxx的匹配客户端

时间:2016-09-17 17:11:12

标签: android

当我尝试使用Gradles文件同步项目时出现错误

这是错误

  

错误:任务':app:processDebugGoogleServices'执行失败。   找不到包名称' ua.com.qascript.android'

的匹配客户

这是Gradle文件内容:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    buildToolsVersion "22.0.0"
    packagingOptions {

        exclude('META-INF/NOTICE')
    }
    packagingOptions {

        exclude('META-INF/LICENSE')
    }
    defaultConfig {
        applicationId "ua.com.qascript.android"
        minSdkVersion 14
        targetSdkVersion 22
        versionName '1.7'
        versionCode 11
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        debug {
        }
    }
    productFlavors {
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile files('libs/volley.jar')
    compile('org.apache.httpcomponents:httpmime:4.3.6') {
        exclude module: 'httpclient'
    }
    compile 'org.apache.httpcomponents:httpclient-android:4.3.5'
    compile 'com.github.chrisbanes.photoview:library:1.2.3'
    compile 'com.google.android.gms:play-services:9.4.0'
    compile 'com.facebook.android:facebook-android-sdk:4.0.1'
    compile 'com.android.support:support-v4:24.2.1'
    compile 'com.google.android.gms:play-services-gcm:9.4.0'
    compile 'com.android.support:appcompat-v7:24.2.1'
    compile 'com.android.support:cardview-v7:24.1.1'
    compile 'com.android.support:recyclerview-v7:24.1.1'
    compile 'com.google.android.gms:play-services-ads:9.4.0'
    compile 'com.pkmmte.view:circularimageview:1.1'
    compile 'com.android.support:design:24.2.1'
    compile 'com.melnykov:floatingactionbutton:1.3.0'
}
// Add to the bottom of the file
apply plugin: 'com.google.gms.google-services'

嗯,在我更新Google Play服务以添加Firebase云消息后会出现此错误,它要求最低9.0版。

请帮我修理一下。感谢。

0 个答案:

没有答案