My apk was 13MB and on installation the occupied space is 25MB. However, after making a few changes (adding libraries, creating modules and organizing the app better), the apk size had increased to 14MB while the odex file is now 56MB. Is there any way to determine why the size has increased?
I have a rooted device. So I can use more than the traditional approaches too if there are any. I checked several blogs and forums. All explain the odex-ing and deodex-ing related functionalities.
EDIT : The size of the odex file increases with time. (25MB to 81MB now).
This SO Q/A explains what an odex is, but I cannot find any place which explains how the odex file (for the lack of a better word) grows.
A possible option could be that when an app's resources are used, the app odex files generates more references to keep the launch time constant/faster?
EDIT 2: Since a lot of people are answering this by suggesting me to check my libraries/dependencies and reduce them.
I want to stress on the observation that.
The file size increases after installing in the next few launches of the application.If it were because of libraries addition,the APK size increases which is totally understandable.The rest of the files(.db,shared preferences etc) increase in size which is expected.
What I cannot figure out is why does the .odex
increase after it is installed which keeps on increasing after every launch .This increase in size is only for the .odex file.
I have checked these files because I am using a rooted device.