15

My project content size like this,

  1. Main Project (Source & asset size 513KB)
  2. Module 1 (Source & asset size 135KB)
  3. Module 2 (Source & asset size 80KB)

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

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

asish
  • 4,767
  • 4
  • 29
  • 49

3 Answers3

4

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

Check this answer : How to use the ProGuard in Android Studio?

Community
  • 1
  • 1
Jemshit
  • 9,501
  • 5
  • 69
  • 106
2

Clear the project and build again. Check raw, asset folder.

Give a look at this http://developer.android.com/tools/building/index.html .

Ratul Ghosh
  • 1,512
  • 9
  • 15
1

In case of a large png files existed try to enable the AAPT and use the next:

android {
    …
    buildTypes {
        release {
            crunchPngs true // or false
        }
    }
}
Taras Vovkovych
  • 4,062
  • 2
  • 16
  • 21