f-miyu / Plugin.CloudFirestore

MIT License
121 stars 44 forks source link

`mono.com.google.firebase.firestore.EventListenerImplementor` is generated by more than one managed type #36

Closed DariuszKalita closed 4 years ago

DariuszKalita commented 4 years ago

Hi,

after update from version 2.0.0 to latest 3.0.1 I get this build error:

The Java type mono.com.google.firebase.firestore.EventListenerImplementor is generated by more than one managed type. Please change the [Register] attribute so that the same Java type is not emitted.
mono.com.google.firebase.firestore.EventListenerImplementor generated by: Firebase.Firestore.IEventListenerImplementor, FirebaseFirestore.Binding, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null mono.com.google.firebase.firestore.EventListenerImplementor generated by: Firebase.Firestore.IEventListenerImplementor, Xamarin.Firebase.Firestore, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

It was running smoothly before update.

Thanks.

f-miyu commented 4 years ago

Does your project use Xamarin.Firebase.Firestore? If so, you should delete Xamarin.Firebase.Firestore from your project.

DariuszKalita commented 4 years ago

Yes, it does. The reason for was the CollectionGroup support I was looking for. Since it is supported only for iOS there and not for Droid it's safe to remove the dependency to Xamarin.Firebase.Firestore from Droid project and use only your plugin instead. Nevertheless it's not possible to use both implementation at the same time in Droid projects in case it'd be needed, at least right now. After removing Xamarin.Firebase.Firestore from Droid project the problem is solved as you mentioned. Thank you.