使用Xamarin和Visual Studio时如何优化每个ABI的APK? [英] How to optimize apk per ABI when using xamarin and visual studio?

查看:161
本文介绍了使用Xamarin和Visual Studio时如何优化每个ABI的APK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac上的Visual Studio 2019中有一个xamarin表单解决方案. 我尝试在Google Play控制台上发布我的apk,但它说它们是未优化的APK .

I have a xamarin forms solution with visual studio 2019 on mac. I try to publish my apk on google play console but it says that they are Unoptimised APK.

在Visual Studio中,我进入了Android项目选项> Android Build. 在发布配置中,我选中了每个选定的ABI生成一个软件包(apk).在高级选项卡中,我检查了4个受支持的ABI.然后我发布了4个APK,然后将其上传到了Google Play控制台.

In visual studio, I went to Android project options > Android Build. In release configuration, I checked Generate one package (apk) per select ABI. In the advanced tab, I checked the 4 supported ABI. Then I published and then uploaded 4 apks to google play console.

这似乎还不够,该网站建议我: -使用Android应用程序捆绑包自动优化设备配置(不确定xamarin解决方案是否支持该配置) -或通过多个APK自己管理(我没有成功)

It doesn't seem to be enough, the website advises me to: - Use the Android App Bundle to automatically optimise for device configurations (Not sure it is supported for xamarin solution) - or manage it yourself with multiple APKs (which I did with no success)

我不能忽略警告,进入下一步的按钮显示为灰色.

I cannot ignore the warning, the button to go to next step is grayed.

推荐答案

Visual Studio 2019中的新功能

New in Visual Studio 2019 for windows 16.4 and for Mac 8.4 added support for building android app package aab format

这篇关于使用Xamarin和Visual Studio时如何优化每个ABI的APK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆