错误:执行失败的任务“:应用程序:processDebugGoogleServices”。 >请修正版本冲突 [英] Error:Execution failed for task ':app:processDebugGoogleServices'. > Please fix the version conflict

查看:285
本文介绍了错误:执行失败的任务“:应用程序:processDebugGoogleServices”。 >请修正版本冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新我的谷歌播放服务,以转速28后我得到这个错误。林不知道为什么会这样,因为它以前做工精细。

After updating my google play services to rev 28 i'm getting this error. Im not sure why this is happening as it was working fine before.

这是我的的build.gradle 文件

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
   compileSdkVersion 23
   buildToolsVersion '23.0.2'

defaultConfig {
    applicationId "com.matsoltech.pakistancurrentaffairs"
    minSdkVersion 10
    targetSdkVersion 23
    versionCode 11
    versionName "2.1.1"
}
buildTypes {
    release {
        multiDexEnabled = true
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android.txt'),      'proguard-rules.pro'
    }
 }
 }

dependencies {
     compile fileTree(include: ['*.jar'], dir: 'libs')
     compile files('src/main/libs/universal-image-loader-1.9.3.jar')
     compile files('src/main/libs/nineoldandroids-2.4.0.jar')
     compile 'com.android.support:appcompat-v7:23.1.0'
     compile 'com.android.support:support-v4:23.1.0'
     compile 'com.android.support:cardview-v7:23.1.0'
     compile 'com.github.ksoichiro:android-observablescrollview:1.5.0'
     compile 'com.google.android.gms:play-services:8.3.0'
     compile 'com.mcxiaoke.volley:library:1.0.18'
     compile 'com.google.android.gms:play-services-analytics:8.3.0'
}

buildscript {
repositories {
    jcenter()
}

dependencies {
    classpath 'com.android.tools.build:gradle:1.3.0'
    classpath 'com.google.gms:google-services:1.4.0-beta3'
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}
}

allprojects {
repositories {
    jcenter()
}
}

所以,任何人都可以请告诉我问题出在哪里?为code的GooglePlayServices的更新之前,做工精细。

So, can anyone please tell me where is the problem? as the code was working fine before the update of GooglePlayServices.

推荐答案

改变你的谷歌服务的依赖关系。

change your google-services in dependencies to

classpath 'com.google.gms:google-services:2.0.0-alpha5'

这将修复它。

这篇关于错误:执行失败的任务“:应用程序:processDebugGoogleServices”。 >请修正版本冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆