Autofac throws an exception when I build on Android but not on UWP (Xamarin Forms).

I don’t know exactly when this problem started, as I was developing on UWP, but when I try to build on Android I get this exception: “An exception was thrown while invoking the constructor.”

Digging deeper, I also found this exception: “System.InvalidOperationException: DeclaringMethod can only be used on generic arguments” It says the module is “System.Reflection.MonoModule” and the FullName “Autofac.Core.Resolving.InstanceLookup”.

Can anyone point me in the right direction on fixing this? I don’t believe the exception is being thrown because of my code, but I might be wrong.

submitted by /u/Asusralis
[link] [comments]

Leave a Reply