InsertKoinIO / koin

Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform
https://insert-koin.io
Apache License 2.0
8.96k stars 711 forks source link

crashes on the fresh installs #1491

Closed periva101 closed 1 year ago

periva101 commented 1 year ago

I have a service like this class PushMessagingService : FirebaseMessagingService() { private var androidNotification: AndroidNotification = get()

}

when the app is first time installed, it crashed, it very weird because when I click on the app for the second time is working, just appears on the fresh installs

 Caused by: org.koin.core.error.NoBeanDefFoundException: |- No definition found for class:'com.benoholding.beno.notificationRepository.presentation.AndroidNotification'. Check your definitions!
arnaudgiuliani commented 1 year ago

do you have race condition or creation somewhere?

stale[bot] commented 1 year ago

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.