APK 大小比预期大 - android studio [英] APK size is bigger than expected - android studio

查看:39
本文介绍了APK 大小比预期大 - android studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目内容大小是这样的,

My project content size like this,

  1. 主要项目(来源和资产大小 513KB)
  2. 模块 1(源和资产大小 135KB)
  3. 模块 2(源和资产大小 80KB)

apk(签名,调试)大小为 4.87MB.也试过 ProGuard 没有任何改变.

And the apk (signed, debug both) size is 4.87MB. Also tried ProGuard nothing changed.

我不明白这是什么原因.即使我没有在我的项目中添加任何 jar 文件.

I do not understand the reason of this. Even I have not added any jar file to my project.

推荐答案

有 2 个构建变体,用于调试和发布.默认构建选项用于调试,这使得尺寸变大.

There are 2 build variants, for Debug and for Release. Default build option is for Debug which makes size big.

检查这个答案:如何在 Android Studio 中使用 ProGuard?

这篇关于APK 大小比预期大 - android studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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