Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly ‘Xamarin.Android.Support.v7.AppCompat

Build Solutions android บน visual studio 2017

error

Severity Code Description Project File Line Suppression StateSeverity Code Description Project File Line Suppression StateError Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly ‘Xamarin.Android.Support.v7.AppCompat, 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.AppCompat.dll’   at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)   at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference)   at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(DirectoryAssemblyResolver resolver, ICollection`1 assemblies, AssemblyDefinition assembly, Boolean topLevel)   at Xamarin.Android.Tasks.ResolveAssemblies.Execute(DirectoryAssemblyResolver resolver) restaurant

 

ไปที่ tools–>Nuget Package Manager–>Manage Nuget Packages for Solution…

 

Browse พิมพ์ Xamarin.Android.Support.v7.AppCompat กด enter

 

คลิ๊ก Project กดปุ่ม Install

ทดลอง Build Solution อีกครั้ง

 

ถ้ายังไม่หาย ให้ลอง Uninstall และ install Xamarin.Form แล้วทำการ restart visual studio 2017

Add a Comment

Your email address will not be published. Required fields are marked *