ascii
09/05/2023, 11:09 AMorg.koin.core.error.InstanceCreationException: Could not create instance for '[Factory:'com.example.SomethingViewModel']'
I've been getting this recently, but in a very peculiar context: only on a release build, regardless of minification being enabled. On debug — even minified — it works perfectly. I've cleared cache and what not, to no avail.
The full error log doesn't reveal anything useful, just call sites. Why is Koin not able to "find" only this ViewModel? All the other ones work, which are very similar in terms of dependencies, what the code does, etc. Other ViewModels are being referenced both before and after this one (in Compose code), and they work without any runtime crashes.
Nothing Koin-specific has changed in my code, so I have no idea how to narrow this down. Is there something else release-specific that could affect Koin's functionality here? It worked before; doesn't now. Koin 3.4.3, Compose 1.6.0-alpha04 (not using koin's compose libs though).ascii
09/05/2023, 11:12 AMarnaud.giuliani
09/06/2023, 8:13 AMascii
09/06/2023, 11:07 AMarnaud.giuliani
09/08/2023, 3:11 PM