Xamarin Forms Cannot Archive APK

Viewed 88

I was using the target framework (Android 9) until I used a nuget package that required minimum target framework of Android 10, when I changed the target framework I was not able to archive the apk anymore. I get the following error: enter image description here

2 Answers

It sounds like you haven't updated to AndroidX completely. Please make sure all the dependencies are updated and all support libraries are replaced with AndroidX. There is a complete guide on how to approach the AndroidX migration, it's not just a simple switch in VS:

https://docs.microsoft.com/en-us/xamarin/xamarin-forms/platform/android/androidx-migration

ps: even if you cannot copy the error message, it makes sense to spend some time and rewrite it in the text so other people can benefit from this post, otherwise it won't be searchable.

Related