I'm trying to use both Realm.io and Dagger in my android app, but I seem to be getting conflict issues with the META-INF/services/javax.annotation.processing.Processor
file.
I've tried adding the following to my build.gradle file:
packagingOptions {
pickFirst 'META-INF/services/javax.annotation.processing.Processor'
}
and also tried it with exclude
, but I get errors like the annotation processors aren't being run in either project.
The error I keep running into is the standard Module adapter for class could not be loaded.
.
What I think is happening is that since both AnnotationProcessors aren't being kept, the processors of one or the other package won't happen, but I could be way off.