0

I'm working with Xmarin.Forms and needed to consume some native 3rd parties into my project. I've managed to create the binding projects and go through the setup with minimal problems. The 3rd party libraries have been developed using Androidx so I had to migrate my Xamarin.Android project to Anroidx too. I'm abble to run the project and open the app but it seems the library is looking to use Landroidx/datastore/preferences/core/PreferencesKeys and it can't find it so it's throwing the following error:

Failed resolution of: Landroidx/datastore/preferences/core/PreferencesKeys;

How can I add this library into my Xamarin.Android project?

Any help would be much appreciated.

I thought about creating another binding project but had no success so far. Looked for the nuget package but can't find it.

1

1 Answer 1

0

The androidx/datastore/preferences/core/PreferencesKeys belongs to the Nuget package named Xamarin.AndroidX.Preference. You can download the Nuget Package for the support.

2
  • This package is already included in the solution but it didn't resolve the issue. Commented Apr 18, 2023 at 12:32
  • You can rebuild the project and try to run it again. Commented Apr 19, 2023 at 9:38

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.