gpt4 book ai didi

android - 错误消息 : The "ConvertResourcesCases" task failed unexpectedly

转载 作者:行者123 更新时间:2023-11-29 00:56:20 25 4
gpt4 key购买 nike

我在 Xamarin.Forms 中收到错误消息““ConvertResourcesCases”任务意外失败”。我的解决方案路径已更改,但仍然显示错误消息。如果你能帮忙,我将不胜感激。谢谢。

System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\users\user\documents\visual studio 2015\Projects\App1\App1\App1.Droid\obj\Debug\__library_projects__\Xamarin.Forms.Platform.Android\library_project_imports\res'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator`1.CommonInit()
at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
at System.IO.Directory.EnumerateDirectories(String path, String searchPattern, SearchOption searchOption)
at Xamarin.Android.Tasks.ConvertResourcesCases.FixupResources(ITaskItem item, Dictionary`2 acwMap)
at Xamarin.Android.Tasks.ConvertResourcesCases.FixupResources(Dictionary`2 acwMap)
at Xamarin.Android.Tasks.ConvertResourcesCases.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() App1.Droid

此错误消息,我在编译期间显示。例如这段代码

 MainPage = new ContentPage
{
Content = new StackLayout
{
VerticalOptions = LayoutOptions.Center,
Children = {
new Label {
XAlign = TextAlignment.Center,
Text = "This is a text!"
}
}
}
};

最佳答案

将您的项目复制到路径较短的位置。

例如:

您的原始文件位置如下所示:c:\users\user\documents\visual studio 2015\Projects\App1\

将其复制并粘贴到另一个位置,如 E:\App1

关于android - 错误消息 : The "ConvertResourcesCases" task failed unexpectedly,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37597649/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com