更新 xamarin 后 android class 库资源出现问题

Issue with android class library resources after updating xamarin

从 xamarin 更新到最新版本后,我遇到了一些有关资源的问题。

我们有一个 android class 库,其中包含我们的核心 android 应用程序功能,例如活动、android 资源(默认图标等)。

这被多个 android 项目引用,每个项目都包含自己的 android 资源,例如图标。这是因为我们销售的是同一个应用的不同实例,只是资源图片不同。

构建 android 应用程序时使用 android class 库中的资源,而不是它自己的资源。

早些时候 android 应用程序会使用它拥有的资源,所以我不确定现在有什么不同。

我们对 ios 使用相同的设置,这与之前的

一样有效

如果您查看 Xamarin 论坛的顶部,特别是 Android 部分,您将 find a post mentioning a plethora of breaking changes and known issues. This is also described in the release notes

目前的解决方法是避免在库和应用程序中使用相同的资源名称。参见 Xamarin Bugzilla 29326