针对Xamarin Android上的64位架构 [英] Targeting 64 bit architectures on Xamarin Android
问题描述
我收到了Google的一封电子邮件,我们需要在2019年8月1日之前开始在我们的Android应用程序中支持64位CPU.在其
I received an email from Google that we need to start supporting 64-bit CPUs in our Android apps by August 1, 2019. In their documentation, it states that there should be a lib/arm64-v8a folder in your apk contents if you're correctly supporting 64 bit.
在我的Xamarin项目选项>构建>编译器设置中,我的Platform目标设置为"Any",因此我希望它能够构建32位和64位版本.但是,当我生成发行版本并将其打包到apk中时,当我浏览apk时,它只有一个lib/armeabi-v7a文件夹,而没有v8a文件夹.那么,我需要怎么做才能支持64位体系结构?
In my Xamarin Project Options > Build > Compiler settings, my Platform target is set to "Any" so I would expect it to build both 32 and 64 bit versions. However, when I generate a release build and package it into an apk, when I browse the apk it only has a lib/armeabi-v7a folder, there is no v8a folder. So what do I need to do to support 64 bit architectures?
我应该已经包括此屏幕截图,显示了我支持的ABI:
I should have included this screenshot, showing my Supported ABIs:
推荐答案
进入您的Project settings / Build / Android Build / Advanced
并启用arm64-v8a
作为您支持的ABI之一.
Go into your Project settings / Build / Android Build / Advanced
and enable arm64-v8a
as one of your supported ABIs.
然后重新构建(如果正在使用VS的功能,则进行新的存档).
And then do a fresh build (or a new archive if you are using that feature of VS).
注意:请确保您针对发布配置
这篇关于针对Xamarin Android上的64位架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!