I have a gradle project with Kotlin 1.5.10. IDEA d...
# getting-started
c
I have a gradle project with Kotlin 1.5.10. IDEA doesn't find
@JvmInline
, and says I should add
kotlin-stdlib:1.4.31
to the class path. Is there something hidden somewhere in the settings?
g
go to your Gradle Scripts directory, there, you should find two build.gradle files. in one of them, there should be something similiar to that :
Copy code
buildscript {
    ...
    dependencies {
        ...
    }
}
inside the dependencies brackets, you should add the following line:
Copy code
implementation "kotlin-stdlib:1.4.31"
i think that should solve your problem
c
buildscript
is for the build dependencies, not for the project dependencies. Also, I'm using 1.5.10, I won't add the 1.4.31 standard library.