Adding google services - Execution failed for task ': app: processDebugResources'

I am trying to run the GCM Client in Android Studio by following the instructions on this website: Deploying the GCM Client on Android

As mentioned in the "Configuring Google Play Services" section, I edited the build.gradle application file to look like this:

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.+'
}

If I synchronize 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

I already tried to change

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

before ie

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

but an error occurred.

I also read some gradle error messages when adding google services, but nothing helped.

Thanks!

+2
source share
1

"buildToolsVersion"? , setup- > app- > properties- > , , , max .

: " 1" , , , java, , .

+2

Source: https://habr.com/ru/post/1627192/


All Articles