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

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

问题描述

我的项目内容大小如此,

My project content size like this,


  1. 主项目(来源与资产大小513KB)
  2. 模块1(源和资产大小为135KB)
  3. 模块2(源和资产大小为80KB)
  1. Main Project (Source & asset size 513KB)
  2. Module 1 (Source & asset size 135KB)
  3. Module 2 (Source & asset size 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.


检查此答案:

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

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