I'm new to Android/Java programming, but have a complete Android app in the Play Store. So I wanted to add Google Cloud Messaging to my app, and that's when I ran into trouble. The various tutorials told me to get the Google Play services SDK and the Google Repository. Now when I try to build, I get 101 errors that I think is related to one or more of my build.gradle files. I've spent hours trying to fix this. Any help would be GREATLY appreciated!
Here is the top of the message I see:
Error:Execution failed for task ':lib:processReleaseResources'.
com.android.ide.common.internal.LoggedErrorException: Failed to run command: /Applications/Android Studio.app/sdk/build-tools/19.1.0/aapt package -f --no-crunch -I /Applications/Android Studio.app/sdk/platforms/android-19/android.jar -M /Users/scott/Documents/development/Android HVB/lib/build/bundles/release/AndroidManifest.xml -S /Users/scott/Documents/development/Android HVB/lib/build/res/all/release -A /Users/scott/Documents/development/Android HVB/lib/build/bundles/release/assets -m -J /Users/scott/Documents/development/Android HVB/lib/build/source/r/release --non-constant-id --output-text-symbols /Users/scott/Documents/development/Android HVB/lib/build/bundles/release
Here is the "app" build.gradle file:
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion '19.1'
defaultConfig {
minSdkVersion 10
targetSdkVersion 19
versionCode 14
versionName "1.3a"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:appcompat-v7:+'
compile 'com.google.android.gms:play-services:6.5.+'
compile project(':lib')
}