@Composable
fun PrivacyAgreementView(
viewModel: PrivacyAgreementViewModel = hiltViewModel()
) {
What could be wrong?
Geert
09/28/2021, 1:03 PM
If I comment out the preferences, the code works.
Geert
09/28/2021, 1:08 PM
Oh i see:
Caused by: java.lang.InstantiationException: java.lang.Class<app.medxpert.pgo.compose.privacy_agreement.PrivacyAgreementViewModel> has no zero argument constructor
but it is injected?
f
FunkyMuse
09/28/2021, 9:03 PM
Make sure you annotate your MainActivity with @AndroidEntryPoint too