I use Android Studio und if i run a app, Gradle cannot find JAVA_HOME
- What went wrong: Execution failed for task ':app:compileDebugJava'. 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.
But JAVA_HOME is set:
alexader@alexander-mint ~ $ echo $JAVA_HOME
returns
/usr/lib/jvm/java-8-oracle
What do i wrong?