Open mistralaix opened 9 months ago
Hmmm this kind of error looks like the kind of error you might get if somehow you compile and run against different class paths. Like the generated module seems to be missing, but if it failed to generate in general I don't think it'd get this far. I think we might need a repro to debug further if you have one.
I have run into similar problem. To solve this
If that don't work, rename your view model and try again.
Don't ask me why it works because I have no idea.
I have a main app module with multiple services and viewModels. Everything looks correctly setup because my app is compiling and running perfectly.
However, if I try to launch any UnitTest or AndroidTest, I get the error below.
I would like to know what could cause this kind of error?
Thanks in advance for your help!
Configuration
In root build.gradle:
In app build.gradle:
My FooViewModel - if I remove it from the app, the same error appears with another viewModel:
Error
Here's the complete error when I run
./gradlew test
: