Android Studio had been working fine. But then I tried to add
compile 'com.android.support:design:23.2.1'
I then got this error everytime I clean or build:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Android\android-sdks\build-tools\23.0.3\aapt.exe'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
So I tried removing it, but I still get the same error! I've been trying to fix it for hours but nothing I tried seems to work.
- I tried the Make option in the Build menu
- I have already tried File > Invalidate Caches / Restart
- I tried changing the buildToolsVersion to lower versions
- I tried changing the
appcompat-v7
import in gradle to lower versions - I tried putting
multiDexEnabled true
Here is my current gradle file:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId [package]
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'com.jakewharton.timber:timber:3.1.0'
compile 'com.github.bumptech.glide:glide:3.6.1'
compile 'com.nononsenseapps:filepicker:2.5.0'
compile 'com.google.code.gson:gson:2.6.2'
compile 'com.squareup.retrofit2:retrofit:2.0.0'
compile 'com.squareup.retrofit2:converter-gson:2.0.0'
}
I'll say it again, this is how it looked like before I added the support design library and it was working fine then.