编译错误:“ResolveLibraryProjectImport”任务失败
问题描述:
我在crossplotform中创建了应用程序,在运行我的应用程序时它显示以下错误。我尝试了清理解决方案并重新构建它,但没有运气,我甚至尝试过减少了这个应用程序的路径,并且unistalled并从nuget包中重新安装了xamarin.forms,即使在完成所有这些同样的错误之后。编译错误:“ResolveLibraryProjectImport”任务失败
Severity Code Description Project File Line Suppression State Tool
Error The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'SnovasysChat.exe, Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'SnovasysChat.exe.dll'
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.GetAssembly(String fileName)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Extract(DirectoryAssemblyResolver res, ICollection`1 jars, ICollection`1 resolvedResourceDirectories, ICollection`1 resolvedAssetDirectories, ICollection`1 resolvedEnvironments)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() SMChat.Android
如何解决这个问题。
答
尝试修复Visual Studio。我会建议你使用Visual Studio 2017 :)
答
尝试以管理员身份打开VS,或尝试更新到最新的VS studio版本。我曾经有这个问题,并在更新后解决了。
当msbuild od adb挂断时,我看到了这个问题。尝试重新启动系统 –
感谢您的回复@ Balakrishna,我早些时候尝试过,但没有更改,错误再次出现。 – sahithi