Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin Forms Java.Lang.NoSuchMethodError

I am making a Xamarin.Forms app that uses Firebase messaging. I'm following the documentations but when I am adding the Nuget packages and deploy my app to my Android device I get the following error:

Java.Lang.NoSuchMethodError: 'No static method checkBuilderRequirement(Ljava/lang/Object;Ljava/lang/Class;)V in class Ldagger/internal/Preconditions; or its super classes (declaration of 'dagger.internal.Preconditions' appears in /data/app/com.technologygate.golden-1/base.apk)'

Anyone has an idea? Thanks in advance.

like image 610
Sam Avatar asked Oct 17 '20 13:10

Sam


1 Answers

I installed the latest Xamarin.Google.Dagger NuGet package into my Xamarin.Android instance and that seems to have fixed it for me. Hope that works for you.

like image 159
Danny Avatar answered Nov 05 '22 02:11

Danny