When running ./gradlew clean build I get following message:
> Task :compileKotlin FAILED
FAILURE: Build failed with an exception.
* What we
I got the exact same problem. I solved it by installing OpenJDK 8 JDK. My machine is running centos so here is my installing command
sudo yum install java-1.8.0-openjdk-devel.
I learned from this article that there are two different Java packages, Java Runtime Environment (JRE) and Java Development Kit (JDK). JRE is for running Java programs, and JDK is for developing Java applications. I only had had JRE installed, but not JDK. After installing JDK, my build ran successfully