Im trying to update my kotlin to 1.4.20 and doing ...
# gradle
w
Im trying to update my kotlin to 1.4.20 and doing
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
when kotlin_version = 1.4.0 build succeeds but when kotlin_version is 1.4.20 it fails, i am using kotlin jvm plugin version 1.4.20. Any help would be appreciated!
m
What is the error you get?
w
message has been deleted
not a lot to go off of in the stacktrace sorry!
m
Double check your repositories declaration and network configuration. This artifact should be in mavenCentral at least: https://repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4.20/
g
As a side note, if you’re using the
kotlin("jvm")
gradle plugin, an explicit dependency on the
stdlib
is not needed anymore (it will be added automatically) since 1.4.x. More here https://kotlinlang.org/docs/whatsnew14.html#specifying-dependencies-only-once
1
w
i tried removing the explicitty stdlib dependency and i still get the error
this is my build.gradle
and this is the error it causes
ok i think if fixed my issue. I changed the project sdk that I was using from my openjdk8 install to the jetbrains openjdk 15 install and the error went away
thanks for all the help
m
Nice, glad to hear it's working now!