我是Xamarin新手,我試圖設置一切正確。我已經在我的電腦上安裝了SDK,安裝了SDK,還有通過SDK管理器安裝的Android SDK平臺工具(我在某處解讀這個問題,所以值得一提)。 SDK路徑被賦予VS並且它是有效的。Xamarin空白應用程序錯誤
每次我試圖創建Xamarin.Forms PCL項目,我得到同樣的警告:
Severity Code Description Project File Line Suppression State
Warning IDE0006 Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled. MyTunes.Droid 1 Active
Severity Code Description Project File Line Suppression State
Warning The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'MyTunes.Shared, Version=, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'MyTunes.Shared.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(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() MyTunes.Droid
如何解決這些警告?
您安裝了哪些Android SDK?有多個,每個主要版本都有一個。打開您的項目屬性並查看您所定位的API級別,並將其與您已安裝的SDK版本進行匹配。 –
我相信我已經安裝了比API 15更高的一切,並且我沒有將應用程序定位到低於15 .. –