Smorg
08/05/2021, 9:30 PMjava.lang.Class<ViewModel> has no zero argument constructor
error when using the hiltViewModel
function. Being stuck on this for over two hours now. I have added all the required libs and annotations but the error won’t go. Any help will be appreciated.Smorg
08/05/2021, 9:31 PMColton Idle
08/06/2021, 12:09 AMSmorg
08/06/2021, 2:29 AM@AndroidEntryPoint
annotation, and I’m using hiltViewModel()
. Surprisingly, the entire set up was working perfectly until I just broke down a module into multiple ones, and everything stopped workingSmorg
08/06/2021, 2:30 AMSmorg
08/06/2021, 4:27 AMTash
01/28/2022, 2:13 AM