Execution failed for task ‘:app:compileDebugJavaWithJavac’ Android Studio 3.1 Update

  • My solution is simple, don’t look at the error notification in Build – Run tasks (which should be Execution failed for task ‘:app:compileDebugJavaWithJavac’)

  • Just fix all errors in the Java Compiler section below it.

enter image description here

Leave a Comment