-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kotlin 1.5 NoSuchMethodError: DurationKt.getMinutes(int) #278
Comments
This got merged into master no changed are required anymore This is a bug related to Kotlin 1.5, which I am currently working on. Due to binary changes in the 1.5 stdlib and some dependencies using 1.5 has some funny odities Schlaubi's stupid guide to use kord 1.5 (Every change you need I found so far)
implementation("dev.kord", "kord-core", "kotlin-1.5") {
version {
strictly("kotlin-1.5-SNAPSHOT")
}
}
|
Oops I didn't notice the kotlin-1.5 branch. Glad you're on top of it! |
In my case (Kotlin 1.5.10) I needed to use api("dev.kord:kord-rest:kotlin-1.5-SNAPSHOT") {
version {
strictly("kotlin-1.5-SNAPSHOT")
}
} The version pinning the |
Whoops I forgot updating that you should use the normal snapshot EDIT: 1.5.10 works with the latest 1.5 snapshots for me |
I still couldn't get a working build going and kept getting the NoSuchMethodError for kotlin.time.DurationKt.getMinutes. Turns out, this doesn't work:
But this does:
|
That's why this post exists: #278 (comment) |
Yes, I know. That was the comment that helped me out of the impasse. My comment was meant as a clarification for others running into this problem, which turned out to be a syntax issue. |
Has been merged to 0.7.x re-open if you'd like further discussion use the |
I'm using kord-core 0.7.0-M2 and I get this at startup.
Kotlin 1.5 made changes to the duration api
The text was updated successfully, but these errors were encountered: