Good morning. I am having trouble with something that I am unable to find a resolution. I have a sample Xamarin Multiplatform application using iOS and Android. The iOS application works fine but I get the following error when running the Android application (it compiles fine). It seems to be looking for “Couchbase.Lite.Support” in order to call the Activate() method but I cannot find the NuGet package that contains that reference. I have only added the Couchbase Lite NuGet package.
Thank you.
Brian
System.TypeInitializationException: The type initializer for ‘Couchbase.Lite.Sync.HTTPLogic’ threw an exception. —> System.TypeInitializationException: The type initializer for ‘Couchbase.Lite.Interop.Native’ threw an exception. —> System.InvalidOperationException: A required dependency injection class is missing (LiteCore.Interop.ILiteCore).
Please ensure that you have called the proper Activate() class in the
support assembly (e.g. Couchbase.Lite.Support.UWP.Activate()) or that you
have manually registered dependencies via the Couchbase.Lite.DI.Service
class.
at Couchbase.Lite.DI.Service.GetRequiredInstance[T] () [0x00027] in <53470bc754c24de1bd6595e9ba2c7369>:0
at Couchbase.Lite.Interop.Native…cctor () [0x00000] in <53470bc754c24de1bd6595e9ba2c7369>:0
— End of inner exception stack trace —
at Couchbase.Lite.Sync.HTTPLogic.GetUserAgent () [0x00152] in <53470bc754c24de1bd6595e9ba2c7369>:0
at Couchbase.Lite.Sync.HTTPLogic…cctor () [0x00000] in <53470bc754c24de1bd6595e9ba2c7369>:0
— End of inner exception stack trace —