Android

NoClassDef Error In Room Unit Tests

While going through unit testing in Room, there was a particular issue I found with the dependencies needed for the tests to pass. I’ve added a snippet of my test code which looks like this: Using AndroidX and RxJava2, my cache layer dependencies looked correct: cacheDependencies = [ daggerCompiler: “com.google.dagger:dagger-compiler:$dagger_version”, dagger: “com.google.dagger:dagger:$dagger_version”, gson: “com.google.code.gson:gson:$gson_version”, rxKotlin: …