Hi :wave: Updating kotlin to 1.5.0 I get this erro...
# android
l
Hi 👋 Updating kotlin to 1.5.0 I get this error
java.lang.NoSuchMethodError: No static method getSeconds(I)D in class Lkotlin/time/DurationKt; or its super classes (declaration of 'kotlin.time.DurationKt'
I removed the
kotlin-stdlib
explicit declaration but the error is still here. I appreciate any help
g
This method was removed, it was experimental
l
I do not use explicity the
getSeconds
method in my code
g
how did you check it?
it should be
someInt.seconds
also of course it can be some of your dependencies. Stacktrace should help identify it
l
You're right Actually I identified some lines of code with this call
int.seconds
I removed all usages of deprecated methods from kotlin.time, but the error does not disappear Here is the stacktrace where it is mentioned about coroutines, but I am using coroutine version 1.5.0
g
AppGateway.kt calls it on init (probably init block or property initialization)
👍 1