Exception: Error:execution failed for task ': App:compiledebugjavawithjavac '. > compilation failed; See the compiler error output for details.

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.