APK size is bigger than expected - android studio

后端 未结 3 2140
温柔的废话
温柔的废话 2021-02-19 02:55

My project content size like this,

  1. Main Project (Source & asset size 513KB)
  2. Module 1 (Source & asset size 135KB)
  3. Module 2 (Source & a
相关标签:
3条回答
  • 2021-02-19 03:25

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

    android {
        …
        buildTypes {
            release {
                crunchPngs true // or false
            }
        }
    }
    
    0 讨论(0)
  • 2021-02-19 03:35

    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?

    0 讨论(0)
  • 2021-02-19 03:47

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

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

    0 讨论(0)
提交回复
热议问题