2017-08-07 99 views
0

我在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 

如何解決這個問題。

+0

當msbuild od adb掛斷時,我看到了這個問題。嘗試重新啓動系統 –

+0

感謝您的回覆@ Balakrishna,我早些時候嘗試過,但沒有更改,錯誤再次出現。 – sahithi

回答

0

嘗試修復Visual Studio。我會建議你使用Visual Studio 2017 :)

0

嘗試以管理員身份打開VS,或嘗試更新到最新的VS studio版本。我曾經有這個問題,並在更新後解決了。

相關問題