Gradle build for an app in Android Studio generates the following error:
Error:Execution failed for task \':app:compileDebugJavaWithJavac\'. > java.lang.R
You can also try running your task like this:
>gradlew --info build
You will get a bunch of useful log information