-
-
Notifications
You must be signed in to change notification settings - Fork 720
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
After updating Koin 2.1.6 version I Got crash like. java.lang.NoSuchMethodError: No virtual method elapsedNow()D in class Lkotlin/time/TimeMark; or its super classes (declaration of 'kotlin.time.TimeMark' appears .... #871
Comments
Sorry this was after 1.4 update of Kotlin standard lib |
are there any solution? i also get this crashes, after update kotlin to 1.4.0. |
@JosephSanjaya we have the answer in this other Issue. 1 - You can migrate the logger from 2 - You can use the val inside KoinApplication like this: // Before:
startKoin {
androidLogger()
androidContext(this@MyApplication)
modules(koinModules)
}
// After:
startKoin {
androidLogger()
androidContext(this@MyApplication)
// TODO Await fix for Koin and replace the explicit invocations
// of loadModules() and createRootScope() with a single call to modules()
// (https://github.com/InsertKoinIO/koin/issues/847)
koin.loadModules(koinModules)
koin.createRootScope()
} |
@GabrielBrasileiro yes that's Fixed for me, thanks |
I am using a library that has a Koin dependency and this crashes whenever trying to run code from their framework. Is there any way to work around this issue if Koin is used by a library? I don't have any direct dependencies to Koin in my application so I am not the one calling startKoin. |
thanks, work in ktro as well. |
You can update to Release Candidate version |
This works Thanks! |
Looks like this issue has shown up again. I am not using Koin directly |
when using androidLogger(Level.ERROR) solve this problem |
I am experiencing this issue too, using 3.0.1. The fix might have landed in 2.x but not in 3.x? Replacing
with
fixed it for me |
Still need to re-open issue? or solved? |
I think the original problems isnt solved as we need the work-around. Thanks |
Not sure if this issue is related to Koin or Kotlin, but this is the bug report InsertKoinIO/koin#871
In my case, this issue was caused by multiple JAR files in the classpath with different versions. This was the warning issued by the building procedure:
I verified that this was the issue by forcing the version resolution of
Maybe this piece of information could be useful. |
Personally, I was using different versions of |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing this because of inactivity. |
in App.kt (Application) class in onCreate method
UODATE: Similar issue appeared on 3.0.1 version
The text was updated successfully, but these errors were encountered: