简体   繁体   中英

Xamarin Forms Cannot Archive APK

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: 在此处输入图像描述

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.

Ok thanks to @ToolmakerSteve I fixed it by changing the archive directory by going to: tools >> options >> xamarin >> android settings then changes Archive location

https://github.com/xamarin/xamarin-android/issues/5584

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM