Useful command for solve gradle build error.

I met an error today and I think I should record this. When run debug, gradle throw an error:

Error:Execution failed for task ':app:processDebugResources'. > 
org.gradle.process.internal.ExecException: Process 'command '/Users/kyle/Documents/developer/sdk/build-tools/23.0.3/aapt'' finished with non-zero exit value 1

Solve the problem

When google the error log, I found a command in StackOverflow.

./gradlew assembleDebug --info

Run this command to see complete information and I notice this line:

<generated>:0: error: invalid symbol: 'switch'

So I think there was a typo and search switch in workspace. Finally I found a attribute definition where using switch for an enum name. I changed that key and problem solved.

The important thing I want to say is that command, if there is a time that I can not location the error in gradle message, I’ll remember that. And, does keyword like switch can not be used for key of attributes?