https://kotlinlang.org logo
#announcements
Title
# announcements
r

raj

10/10/2019, 6:39 PM
*phg@ubuntu:~/gateway-model$ javac -version javac 1.8.0_222 phg@ubuntu:~/gateway-model$ java -version openjdk version "1.8.0_222" OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~18.04.1-b10) OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode) phg@ubuntu:~/gateway-model$ ./gradlew build --info FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileKotlin'.> 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. * Try: Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings *
r

Ruckus

10/10/2019, 6:41 PM
Please don't cross post
j

Jerry Applegarth

10/10/2021, 5:03 PM
I have the same problem. I was unable to fix it, then I changed this: classpath "com.android.tools.buildG7.0.2" to 7.0.0 and it worked ok.