我刚刚在我的 Xamarin.Forms 项目中编码,突然出现了这个错误:
\n\nProject is not compatible with monoandroid81(MonoAndroid,Version=v8.1). Project TaskX.iOS supports: xamarinios10 (Xamarin.iOS,Version=v1.0)
\n我不\xc2\xb4t 真的知道这意味着什么。有没有人有办法解决吗?
我有一个 Xamarin.Forms 项目,我将一个图像拖放到我的 Android 资源文件夹中,然后我将其复制并粘贴到我的 UWP 项目中,但该图像没有显示,因此我将其构建操作更改为 Content,但它显示错误:
Error The item "obj\Debug\MainPage.xaml.g.cs" was specified more than once in the "Sources" parameter. Duplicate items are not supported by the "Sources" parameter. XamaTask.Android
我不确定它是否与图像相关,但是在我复制、重命名和更改构建操作属性后,错误开始显示,我还删除了图像并再次重命名了更多次并检查了我的 Android.csproject 但我没有发现任何重复物品。
编辑
我找到了有错误的文件,但同样,我没有发现任何重复,这是代码:
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
[assembly: global::Xamarin.Forms.Xaml.XamlResourceIdAttribute("XamaTask.Droid.MainPage.xaml", "MainPage.xaml", typeof(global::XamaTask.MainPage))]
namespace XamaTask { …Run Code Online (Sandbox Code Playgroud)