. Advertisement .
..3..
. Advertisement .
..4..
Hello everyone, I’m doing with Java code in a Java’s project, and while I put in Build hammer icon, it appeared this error “execution failed for task ‘:app:compiledebugjavawithjavac'”:
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
I have reseached many differentlly documents, but I can not solve this. If you know, please answering for me. Thank a lots.
The cause:
Verson issue
The solution:
I have two suggestions, you can refer them:
and then you can change these in build.gradle file.
2. Maybe your Java Home Location or Config didn’t true.
Sometimes, the smallest mistake in your $JAVA_HOME may be tabling this issue. To resolve it, just do this:
Good luck!