Execution failed for task ':compileTestJava'

Hi -

I get the below error

:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:compileTestJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:compileTestJava’.

Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

If anyone know why this is happening pls update.