An error occurred while trying to start the gradle task. I canβt understand what else is required or what is the error. The project I'm working on has several subprojects, so I have the main build.gradle. A bug for the subproject where I wanted to try Kotlin.
* Where: Build file '/home/oracle/bnc/KotlinHandler/build.gradle' line: 13 * What went wrong: A problem occurred evaluating root project 'KotlinHandler'. > Failed to apply plugin [id 'kotlin'] > Could not generate a proxy class for class org.jetbrains.kotlin.gradle.tasks.KotlinCompile.
Here is my build.gradle for the module with the error (subproject).
buildscript { ext.kotlin_version = '1.1.2-2' repositories { mavenCentral() } dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } apply plugin: 'kotlin' repositories { mavenCentral() } dependencies { compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" }
Here is Pastebin build.gradle , which is quite large, due to all the tasks in it
Added --debug output after changing jdk to 1.8 and compile dependency to compile "org.jetbrains.kotlin:kotlin-stdlib-jre8
kotlin gradle
Philipp grigoryev
source share