https://kotlinlang.org logo
#getting-started
Title
# getting-started
c

CLOVIS

06/08/2021, 8:51 AM
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

Guillaume Mannone

06/08/2021, 5:23 PM
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

CLOVIS

06/08/2021, 5:30 PM
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.
2 Views