Android Studio (1.2 RC0) keeps telling me
Error running android: Gradle project sync failed. Please fix your project and try again.
How can I find out what the problem is? Unfortunately the solutions from this SO thread did not help.
The Problem is that i am able to run my app when i change to debug mode but it fails when i switch to release mode.
Exception:
**FAILURE: Build failed with an exception.**
> Execution failed for task ':app:…
Gradle is a bit confusing to me, and also for any new Android developer. Can anyone explain what Gradle in Android Studio is and what its purpose is? Why is it included in Android Studio?