ContextMenu: Exception on load

Getting I/MonoDroid(12340): System.TypeLoadException: Could not resolve type with token 01000042 from typeref (expected class 'Android.Support.V4.Widget.NestedScrollView' in assembly 'Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null') on load at my Android 7.1.2. Cant test with any other devices

Gooling about the exception i found that other people had a similar one with Plugin.SecureStorage, but none of their solutions have worked for me: cleaning project, "Droid Project -> Property -> Android Option-> Linker -> “SDK Assemblies Only”, checking for different xamarin.forms versions, or running in release mode. Any ideas of what could be causing this? Im a new to C# and Xamarin so maybe is just some really obvious step wich i missed 😕

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 20 (8 by maintainers)

Most upvoted comments

I’ll try it as soon as i go back to work tomorrow morning However i think i was compiling with API 28 as target, and also higher min android version, on Visual Studio 2019 on Windows