我有一个macbook pro,我需要在Windows Visual Studio上使用Xamarins的Forms项目做一些事情,所以我使用VirtualBox并安装了Windows 10专业版。
我在我的Windows机器上克隆了项目,清理了它,但是当我尝试重建时,我收到了这个错误: (不是代码错误,同一项目在其他机器上编译,我想是一些设置问题。)
Error The "Aapt" task failed unexpectedly.
System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char[] data, Int32 length, Int32 invCharPos)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
at Xamarin.Android.Tasks.ManifestDocument..ctor(String templateFilename, TaskLoggingHelper log)
at Xamarin.Android.Tasks.Aapt.GenerateCommandLineCommands()
at Microsoft.Build.Utilities.ToolTask.Execute()
at Xamarin.Android.Tasks.Aapt.ExecuteForAbi(String abi)
at Xamarin.Android.Tasks.Aapt.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() DemoAzureOfflineSync.Droid