bmrs
bmrs

Reputation: 137

xamarin android development debugging error

I see this error while building xamarin.android:

Severity Code Description Project File Line Suppression State Error Exception while loading assemblies: 
System.IO.FileNotFoundException: Could not load assembly 'Xamarin.Android.Support.v7.RecyclerView, Version=1.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile? 
File name: 'Xamarin.Android.Support.v7.RecyclerView.dll' at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters) at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(ICollection`1 assemblies, AssemblyDefinition assembly, Boolean topLevel) at Xamarin.Android.Tasks.ResolveAssemblies.Execute() App3.Droid?        

Upvotes: 0

Views: 2466

Answers (1)

cobey
cobey

Reputation: 1201

It appears as if the version of Android.Support is either missing or unusable. This can normally be resolved by clearing out the packages and downloading them again.

To do this, please follow the steps below:

  1. Remove all packages from Android App (including Forms)
  2. Add Xamarin.Forms from NuGet

The act of adding Xamarin.Forms from NuGet will retrieve the correct versions of the various Android support libraries, including those that are throwing the error and/or missing.

Please let me know if this resolves the issue.   Thanks!

Upvotes: 2

Related Questions