Execution Failed for task :app:compileDebugJavaWithJavac in Android Studio

In Android Studio 3.1, you can see the errors details in the Build window.

Open up Build tab. They are somewhat hidden, you have to expand the Java compiler node. You will see the errors there.

enter image description here

But there is a better way to see the errors. You can click on the Toggle View button to get a better view of the error. That way you don’t have to expand each node.

enter image description here

Leave a Comment