如何修复错误 XAGJS7028:无法在 .NET MAUI 中加载程序集“Xamarin.AndroidX.AppCompat.Resources”?

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

我正在将 Xamarin 表单代码迁移到 .NET MAUI。迁移后,当我构建 Android 项目时,出现以下错误:

Error XAGJS7028 System.IO.FileNotFoundException: Could not load assembly 'Xamarin.AndroidX.AppCompat.Resources,  Perhaps it doesn't exist in the Mono for Android profile?

我不知道如何解决这个问题。有什么建议吗?

c# android xamarin xamarin.android maui
1个回答
0
投票

我今天遇到了类似的问题,添加 nuget 包

Xamarin.AndroidX.AppCompat.Resources
(版本 1.1.0.2)实际上为我修复了构建。

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