"Error: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.
JAVA_HOME=/usr/lib/jvm/java-8-oracle/bin/java export JAVA_HOMEPATH=$PATH:$JAVA_HOMEexport PATH
$ java -versionjava version "1.8.0_25"Java(TM) SE Runtime Environment (build 1.8.0_25-b17)Java HotSpot(TM) Client VM (build 25.25-b02, mixed mode)
sudo update-alternatives --config java