Huge Apk difference between gradle v1.x vs v2.x

The other day I inspected "App Info" from an application that I am developing, and, to my surprise, I found that a huge amount of Mb was used as a "cache" (the application has not yet downloaded any content, it was just a layout). At first I thought that I could be some heavy libraries that I added (mural ..), so I decided to create an empty project to find out what the problem is.

I tried 2 scenarios: pre-lollipop and lollipop. With this, I found out that there is some difference with how they handle the “data”, but the overall size of the APK was the same. Although here, in pre-lollipop (4.4.4) there was almost no "cache" (FIRST IMAGE) in the lollipop ... well, 8 mb of "cache".

lollipop vs pre-lollipop - gradle 2.1

, , , "" . , , , , , -, gradle !

lollipop vs pre-lollipop - gradle 1.5

gradle 1.5 apk "" ( , pre-lollipop)
-, ? .
gradle?

+4
1

" " , , . , , -, , "" (getCacheDir()?).

, APK , , , .

, Instant Run ( ).

+1

All Articles