添加谷歌服务 - 执行失败的任务“:应用程序:processDebugResources” [英] Adding google services - Execution failed for task ':app:processDebugResources'

查看:98
本文介绍了添加谷歌服务 - 执行失败的任务“:应用程序:processDebugResources”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现GCM客户端Android Studio中下面这个网站上的步骤:
在Android 实施GCM客户端

I'm trying to Implement GCM Client in Android Studio following the steps on this website: Implementing GCM Client on Android

由于下提到的设置谷歌播放服务我编辑我的应用程序的的build.gradle文件,以便它看起来像:

As mentioned under "Set Up Google Play Services" I edited my application's build.gradle file so that it looks like that:

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
    compileSdkVersion 20
    buildToolsVersion "23.0.0"

    defaultConfig {
        applicationId "com.buuurn.gymio"
        minSdkVersion 16
        targetSdkVersion 21
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    compile 'com.android.support:support-v4:23.0.0'
    compile 'com.google.android.gms:play-services:7.+'
}

如果我的Gradle同步现在我收到此错误信息:

If I sync gradle now I get this error message:

Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Applications/adt-bundle 23/sdk/build-tools/23.0.0/aapt'' finished with non-zero exit value 1

我已经试图改变

compile 'com.google.android.gms:play-services:7.+'

要即。

compile 'com.google.android.gms:play-services:7.8.0'

但是出现同样的错误。

but the same error has occurred.

我也看到了有关错误的gradle一些职位,同时增加谷歌的服务,但没有帮助呢。

I've also read some posts about gradle errors while adding google services but nothing has helped yet.

感谢您!

推荐答案

您是否尝试过检查buildToolsVersion?如果没有,去设置 - > APP->属性 - >检查你的build版本,看看如果你找到它,如果不使用你的最高版本或更新。

Have you tried to check your "buildToolsVersion"? If not, go to setting->app->properties->check your build version to see if you find it, if not use the max version you have or update it.

对于这个错误:非零退出值1完成有几个原因,如果它造成的RAM,尝试重新启动您的设备,如果它引起您的Java环境,也许你应该重新安装

Regarding this error:"finished with non-zero exit value 1" there are several reason, if it caused by RAM, try restart your device, if it caused by your java environment, maybe you should reinstall.

这篇关于添加谷歌服务 - 执行失败的任务“:应用程序:processDebugResources”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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