Couchbase 2.0, DB22, Dependencies problem in Xamarin Forms, Android project


Since I upgraded my xamarin forms app, c# in the db22 version of couchbase lite 2.0, I tested with the UWP project.
Now I’m testing the Android project.

I upgraded too Couchbase.Lite.Support.Android into the db22.

At my first launch, I had an exception that the DLL Microsoft.Extensions.DependencyInjection.Abstractions was not found. For me it’ not normal, I didn’t used to add it.

The exception happened when I call the methode Couchbase.Lite.Support.Droid.Activate(this);

I tried to add the nuget dependency only for the android project.

After that, I have a new exeption :
System.MissingMethodException: Method ‘Couchbase.Lite.DI.Service.RegisterServices’ not found.

Isn’t it a trouble in the package dependencies ??



This is almost certainly caused by only upgrading one project to db022 while another gets left at db021. Make sure all the projects have been upgraded for both the main packages and the support packages.


I had to clean the solution, and all the nuget cache to make it work.

Excuse me for disturbing you for that.