本文介绍了减少Xamarin.Forms中APK的大小,APK大小80MB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法将xamarin apk大小减小到80 MB以下,请执行以下操作:

Cannot reduce xamarin apk size below 80 MB, did the following:

  • 启用了proguard
  • 配置:发布
  • 平台:活动(任何CPU).
  • 启用Multi-Dex:true
  • 启用开发人员检测(调试和配置文件):false
  • 链接:SDK和用户程序集(也尝试过sdk程序集)
  • 支持的体系结构:全部选定

Visual Studio Community 2017版本:15.9.6
需要一些帮助...

Visual studio community 2017 version: 15.9.6
Need some help on this...

推荐答案

删除所有不需要的程序集和映像资源,它应该可以解决您的问题,在构建规模方面,它们可能令人讨厌且痛苦.

Remove all the unwanted assemblies and image resources and it should solve your problem, they can be pesky and painful when it comes to the size of your build.

也仅根据我的要求选择发布版本所需的Abi,armeabi-v7aarm64-v8a应该足够.

Also only select the Abi's that are needed for your release build as per me armeabi-v7a and arm64-v8a should be enough.

以防万一,这也无济于事,因为 SushiHangover 建议解压缩Apk并检查是什么原因造成的,还要检查 windirstat 就像 Jon 建议.

Also in case, this does not help as SushiHangover suggested unzip the Apk and check what is causing the issue also check the windirstat just like Jon suggested.

在查询的情况下返回.祝你好运

Revert in case of queries.Good luck

这篇关于减少Xamarin.Forms中APK的大小,APK大小80MB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 11:39