Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/353.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/226.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 在更新android studio和新sdk之后,我得到了;错误:任务';的执行失败:应用程序:ProcessDebuggGoogleServices';。我怎样才能解决这个问题?_Java_Android_Android Studio_Gradle - Fatal编程技术网

Java 在更新android studio和新sdk之后,我得到了;错误:任务';的执行失败:应用程序:ProcessDebuggGoogleServices';。我怎样才能解决这个问题?

Java 在更新android studio和新sdk之后,我得到了;错误:任务';的执行失败:应用程序:ProcessDebuggGoogleServices';。我怎样才能解决这个问题?,java,android,android-studio,gradle,Java,Android,Android Studio,Gradle,这是我尝试构建应用程序时遇到的错误 错误:任务“:app:processDebugGoogleServices”的执行失败 请通过更新google services插件的版本(有关最新版本的信息,请访问)或将com.google.android.gms的版本更新为9.0.0来修复版本冲突 这些是我在项目中使用的依赖项 dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'juni

这是我尝试构建应用程序时遇到的错误

错误:任务“:app:processDebugGoogleServices”的执行失败

请通过更新google services插件的版本(有关最新版本的信息,请访问)或将com.google.android.gms的版本更新为9.0.0来修复版本冲突

这些是我在项目中使用的依赖项

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:24.0.0'
    compile 'com.android.support:recyclerview-v7:24.0.0'
    compile 'com.android.support:cardview-v7:24.0.0'

    compile('com.mikepenz:materialdrawer:3.1.0@aar') {
        transitive = true
    }
    compile 'com.github.navasmdc:MaterialDesign:1.5@aar'
    compile 'com.nineoldandroids:library:2.4.+'

    compile 'com.google.android.gms:play-services-ads:9.2.0'
    compile 'com.google.android.gms:play-services-appindexing:9.2.0'


    compile 'in.srain.cube:grid-view-with-header-footer:1.0.12'
    compile 'com.quinny898.library.persistentsearch:library:1.1.0-SNAPSHOT'
    compile 'com.github.nirhart:parallaxscroll:1.0'
    compile 'com.github.amlcurran.showcaseview:library:5.4.1'

    compile 'com.getbase:floatingactionbutton:1.10.1'

    compile 'com.google.api-client:google-api-client-android:1.20.0' exclude module: 'httpclient'
    compile 'com.google.http-client:google-http-client-gson:1.20.0' exclude module: 'httpclient'
    compile 'com.google.apis:google-api-services-vision:v1-rev2-1.21.0'

    compile 'com.google.firebase:firebase-core:9.2.0'
    compile 'com.google.firebase:firebase-messaging:9.2.0'

    compile 'me.gujun.android.taggroup:library:1.4@aar'

}

在网上搜索了两天之后,我终于找到了一个解决方案。 我把
apply插件:“com.google.gms.google服务”
放在build.gradle文件的末尾。 但我还是不明白为什么我把它写在上面时它不起作用


谷歌可能知道:p

您是否检查过SDK管理器中的GPS是否是最新的?@OrhanC1 GPS?你是说gpu调试工具吗?谷歌播放服务。@OrhanC1是的,它是最新的。