Java – dagger 2 trouble @ inject firebasemessagingservice
I recently tried to migrate an application I was working on from GCM to FCM In doing so, I found that I had previously provided my retrofit API and instances of other user data managers in the service in dagger 2 (2.0.2) (no problem), so I can't do this anymore
Whenever I try to compile with the firebasemessagingservice subclass listed in my dagger 2 component interface, I get an illegalargumentexception After mining some code, dagger 2 seems to throw an exception when it tries to verify a class name and finds that the first letter is not capitalized Firebasemessagingservice inherits an uglified / minified code base at least at my end. Its direct superclass is zzb (public class firebasemessagingservice extensions com. Google. Firebase. IID. Zzb)
My best guess is that this is the culprit If this is really a problem, I don't know what to do now, except stick to GCM Does anyone have any ideas or similar experience?
Editor: I have the opportunity to ask a firebase developer about this question: https://www.reddit.com/r/androiddev/comments/4upj1o/beware_of_the_new_firebase/d5tdbk3 – no resolution I may just avoid direct injection and integrate into static API providers
Solution
After a long struggle, I finally moved to dagger 2.7 to correct the problem
compile "com.google.dagger:dagger:2.7" apt "com.google.dagger:dagger-compiler:2.7"