I’m trying to use Couchbase.Lite in a Xamarin.Forms app but runnig up against a System.TypeInitializationException when I try to create/get the database using this code:
// Get the database (and create it if it doesn't exist) var database = new Database("mydb");
I have the Couchbase.Lite NuGet package installed in all my projects and I am calling the Activate method in my Android MainActivity OnCreate method like this:
The only exception details I get are:
System.TypeInitializationException: The type initializer for 'Couchbase.Lite.Sync.HTTPLogic' threw an exception.
Is there something I’m missing?
Thanks for any help