I am just starting with Kotlin and Intellij Idea. I managed to create a project for a console application and run a program with a few lines of code. I wanted my program to read a dataframe and tried to install the package dataframe but could not do it.
Following the author's instructions I added
implementation 'org.jetbrains.kotlinx:dataframe:0.8.1'
to the dependencies section of the file build.gradle.kts
. That did not work. I added parentheses and replaced the single quotes with double quotes:
implementation("org.jetbrains.kotlinx:dataframe:0.8.1")
Then I got the following message:
warning: default scripting plugin is disabled: The provided plugin org.jetbrains.kotlin.scripting.compiler.plugin.ScriptingCompilerConfigurationComponentRegistrar is not compatible with this version of compiler
error: unable to evaluate script, no scripting plugin loaded
Any suggestions will be greatly appreciated. This is well over my head. but could not
CodePudding user response:
The second one you listed, implementation("org.jetbrains.kotlinx:dataframe:0.8.1")
, is the correct syntax to use in Gradle's Kotlin DSL.
The error points to an issue with the Kotlin compiler version you're using. Want to try setting that to the latest version? Here's a thread on how to do that.