python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Cannot create instance of MainViewModel - has no zero argument constructor with Compose Hilt
Using Jetpack Compose to build small Room database app. I keep getting error:
Cannot create an instance of class com.learning.kotlinreadexstingroomdb.MainViewModel
...
Caused by: java.lang.Instantiati...

SqueezeOJ
Votes: 0
Answers: 2
How to provide Repository instance into Firebase messaging service class using with HILT
I have set up DI with HILT in my project . Now I have to integrate FCM Push notifications so I have to provide repository instance to Firebase messaging service class to update the new fcm token to se...
Harish Padmanabh
Votes: 0
Answers: 2
Inject Worker in AndroidTest class by Hilt
I am trying to test Worker but i can't inject it
Error while gradle building:
Dagger does not support injecting @AssistedInject type,
com.hussien.quoty.sync.NotificationWorker. Did you mean to inject ...

Hussien Fahmy
Votes: 0
Answers: 0
How to inject lambda(or interface) at runtime with hilt
I'm using hilt with MVVM, RecyclerView
I wanna inject a lambda into the Adapter for receiving clickListeners from child views,
but with @Module, I cannot create lambda at runtime.
[Snippets below]
// ...
sssrigo
Votes: 0
Answers: 1