Nuget 更新后 VS Xamarin 应用程序中找不到资源错误

问题描述 投票:0回答:1

我编写了一个已经运行了好几年的应用程序。今天,遗憾的是,我更新了 Nuget 软件包,现在出现了如下错误。 我安装了最新的 Android SDK(Android API 32、平台 33),但它没有改变任何东西。 对此的任何帮助将不胜感激。我不想放弃这个伟大的应用程序。

链接引用失败时出错。我的应用程序.Android
找不到错误资源 style/Theme.AppCompat.Light.DarkActionBar (又名 MyName.MyApp:style/Theme.AppCompat.Light.DarkActionBar)。我的应用程序.Android
找不到错误资源 style/Theme.AppCompat.Light.Dialog(又名 MyName.MyApp:style/Theme.AppCompat.Light.Dialog)。我的应用程序.Android
找不到错误样式属性“attr/colorPrimaryDark(又名 MyName.MyApp:attr/colorPrimaryDark)”。 MyApp.Android 位置\App1.Android\Resources alues\styles.xml 2
找不到错误样式属性“attr/windowNoTitle(又名 MyName.MyApp:attr/windowNoTitle)”。 MyApp.Android 位置\App1.Android\Resources alues\styles.xml 2
找不到错误样式属性“attr/windowActionBar(又名 MyName.MyApp:attr/windowActionBar)”。 MyApp.Android 位置\App1.Android\Resources alues\styles.xml 2
找不到错误样式属性“attr/colorPrimary(又名 MyName.MyApp:attr/colorPrimary)”。 MyApp.Android 位置\App1.Android\Resources alues\styles.xml 2
找不到错误样式属性“attr/colorAccent(又名 MyName.MyApp:attr/colorAccent)”。 MyApp.Android 位置\App1.Android\Resources alues\styles.xml 3
找不到错误样式属性“attr/windowActionModeOverlay(又名 MyName.MyApp:attr/windowActionModeOverlay)”。 MyApp.Android 位置\App1.Android\Resources alues\styles.xml 4
找不到错误样式属性“attr/colorAccent(又名 MyName.MyApp:attr/colorAccent)”。 MyApp.Android 位置\App1.Android\Resources alues\styles.xml 4

xamarin.forms xamarin.android visual-studio-2022
1个回答
0
投票

解决方案1

快速的方法是删除obj和bin文件。

解决方案2

在这种情况下,您可以尝试 Arnaud F. 提供的方法:Xamarin - 找不到匹配的资源

© www.soinside.com 2019 - 2024. All rights reserved.