Java.Lang.NoSuchMethodError: ‘没有静态方法checkBuilderRequirement。

huangapple go评论63阅读模式
英文:

Java.Lang.NoSuchMethodError: 'No static method checkBuilderRequirement

问题

更新到Xamarin.Forms 4.8之后,当应用程序启动时出现以下错误:

Java.Lang.NoSuchMethodError: 在类Ldagger/internal/Preconditions中没有名为'checkBuilderRequirement'的静态方法(Ljava/lang/Object;Ljava/lang/Class;)V,或者其父类('dagger.internal.Preconditions'的声明出现在/data/app/com.codex.MojLek-ELK-GTa_ywWpF5Na88sJeQ==/base.apk中)

如何修复这个问题?

英文:

After updating to Xamarin.Forms 4.8 i get this error when application starts:

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.codex.MojLek-
ELK-GTa_ywWpF5Na88sJeQ==/base.apk)'

How to fix this problem?

答案1

得分: 56

我将最新的Xamarin.Google.Dagger NuGet包安装到我的Xamarin.Android实例中,这似乎解决了我的问题。希望对你也有帮助。

英文:

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.

huangapple
  • 本文由 发表于 2020年10月19日 21:28:25
  • 转载请务必保留本文链接:https://go.coder-hub.com/64428377.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定