【发布时间】:2018-05-26 00:16:19
【问题描述】:
几天前,我的解决方案似乎运行良好,但今天突然间,Android 项目无法构建。 我没有收到错误,但确实得到以下输出:
1>Build started.
1>Project "MyApp.Android.csproj" (Install target(s)):
1>Project "MyApp.csproj" (GetTargetFrameworks target(s)):
1>Done building project "MyApp.csproj".
1>Project "MyApp.csproj" (GetTargetFrameworks target(s)):
1>Done building project "MyApp.csproj".
1>Project "MyApp.csproj" (GetTargetPath target(s)):
1>Done building project "MyApp.csproj".
1>Project "MyApp.csproj" (GetTargetPath target(s)):
1>Done building project "MyApp.csproj".
1>Project "MyApp.csproj" (GetNativeManifest target(s)):
1>Done building project "MyApp.csproj".
1>Project "MyApp.csproj" (GetNativeManifest target(s)):
1>Done building project "MyApp.csproj".
1>"obj\Debug\MyApp.Android.dll;obj\Debug\MyApp.Android.dll" is an invalid value for the "OutputAssembly" parameter of the "Csc" task. Multiple items cannot be passed into a parameter of type "Microsoft.Build.Framework.ITaskItem".
1>Done building project "MyApp.Android.csproj" -- FAILED.
1>Build FAILED.
我还尝试删除 bin en obj 文件夹,清理并重建解决方案并删除 MyApp.Android.dll。 但是在重建之后,完全相同的事情再次发生。
我确实收到以下警告:
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. BarApp.Android 1 Active
【问题讨论】:
-
在您的项目集中链接到
Sdk Assemblies Only并检查armeabi - v7和x86的支持架构。 -
谢谢!我已经在你的答案中找到了所有内容,但我也检查了“Armeabi”(没有 -v7),所以我取消选中它,现在它可以工作了(:如果你将它作为答案发布,我会接受它。
标签: c# android xamarin xamarin.forms xamarin.android