I am also very silent about this exception, because Android Studio does not prompt you for detailed error messages at all.
Let's take a look at this blogger: http://blog.csdn.net/runner__1/article/details/53482565
I've found the wrong thing to learn from his mistakes.
Go to the root of the project at the command line, or you can do it directly in the terminal of Android Studio, and then enter a command:
Gradlew Compiledebug--stacktrace
Can output more detailed information, and then according to the command line prompts, you can also add-info or-debug option to get more detailed information, so this command can write:
Gradlew Compiledebug--stacktrace-info
Or: Gradlew compiledebug--stacktrace-debug
After searching, I used this command with the method provided by the blogger above.
Gradlew compiledebugsources--stacktrace-info
Finally found this.
Ok! Found this error, and finally found that I used the databinding annotation but did not inherit baseobservable so found the error is easy to change the ~
Exception: Error:execution failed for task ': App:compiledebugjavawithjavac '. > compilation failed; See the compiler error output for details.