Closed sanginovs closed 2 years ago
Are you talking about using mocks from the launcher? in general the mocking was not necessarily designed to work with assisted inject so the ViewModelFactoriesFieldInjector isn't set up on the launcher activity. You may need to make some changes for them to be compatible
Hi @elihart When using mavericks-mocking with viewModels which use Dagger's @assistedInject, I keep getting this runtime error. Any idea on how to fix this?
Caused by: java.lang.IllegalArgumentException: No ViewModelFactoriesFieldInjector found.
Here's the code that throws this error (My assistedInject setup is similar to mavericks assisted inject sample project):