如何将“androidx/datastore/preferences/core/PreferencesKeys”添加到我的 Xamarin.Android 项目

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

我正在使用 Xmarin.Forms,需要在我的项目中使用一些原生的第 3 方。我已经成功地创建了绑定项目,并以最少的问题完成了设置。第 3 方库是使用 Androidx 开发的,因此我也必须将我的 Xamarin.Android 项目迁移到 Anroidx。我能够运行项目并打开应用程序,但似乎库正在寻找使用 Landroidx/datastore/preferences/core/PreferencesKeys 但它找不到它所以它抛出以下错误:

解析失败:Landroidx/datastore/preferences/core/PreferencesKeys;

如何将此库添加到我的 Xamarin.Android 项目中?

任何帮助将不胜感激。

我想过创建另一个绑定项目,但到目前为止没有成功。 寻找 nuget 包但找不到它。

android xamarin xamarin.android binding
© www.soinside.com 2019 - 2024. All rights reserved.