When running ./gradlew clean build I get following message:
> Task :compileKotlin FAILED
FAILURE: Build failed with an exception.
* What we
> Kotlin could not find the required JDK tools in the Java installation '/usr/lib/jvm/java-8-openjdk-amd64/jre' used by Gradle. Make sure Gradle is running on a JDK, not JRE.
it's set to /usr/lib/jvm/java-8-openjdk-amd64/jre.
Should set the JAVA_HOME to /usr/lib/jvm/java-8-openjdk-amd64/
If your OS is Ubuntu, make suer to install openjdk jdk by sudo apt-get install openjdk-8-jdk
sudo apt install openjdk-8-jre-headless
will install jre, not jdk