You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After updating to version 4.0.0, by using the androidContext() function in Koin config it throws java.lang.NoSuchMethodError but without using this function it seems everything works properly.
To Reproduce
Steps to reproduce the behavior:
Add koin to a KMP project
On Android application in Application class, inside startKoin call the androidContext() function and pass it the Application class
By running the Android app it crashes with the mentioned exception.
Expected behavior
Everything works like older versions without throwing NoSuchMethodError exception
Koin module and version: koin-core:4.0.0
Snippet or Sample project to help reproduce
class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
startKoin {
androidContext(this@MyApplication)
androidLogger()
modules(someModule)
}
}
}
The text was updated successfully, but these errors were encountered:
Should we use both koin-compose and koin-androidx-compose libraries? Because from the documentation here I assumed that androidContext would be also available in koin-compose
Describe the bug
After updating to version 4.0.0, by using the androidContext() function in Koin config it throws java.lang.NoSuchMethodError but without using this function it seems everything works properly.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Everything works like older versions without throwing NoSuchMethodError exception
Koin module and version:
koin-core:4.0.0
Snippet or Sample project to help reproduce
The text was updated successfully, but these errors were encountered: