I have been working on my game for a while now. Up until now, I haven’t paid much attention to my game’s install size. However, I recently noticed that the apk’s size is almost 25mb, and the installed size is about 80mb. Is this normal considering that I don’t have any big assets in my game? I have no images or music. I am using the ponytiled and appodeal plugins. Thanks in advance for your help!
A lot of that 80MB is your assets. If you build the ‘Hello World’ sample that comes with Corona you’ll see it comes out to < 8MB.
Some of you 80MB might also be plugins if you are using them, but again most (about 72MB) of that is your assets.
I’m not sure what I have that could be taking up 72 mb of space. I have 0 image or audio files (up to know, I have been making buttons using shape construction). The biggest file I have that isn’t an icon, a scene, or a settings file is a font file, and it’s only 23kb. I really do not have much and I can’t firgure out why it installs so big. Is it possible it has something to do with the ponytiled or appodeal plugins? I really have no idea what it could be. Thanks for your help!
-
Just to be clear, the APK is 80MB?
-
Are you developing on Windows or Mac?
- If Windows, just right mouse click the folder of you game (containing main.lua etc) and click ‘properties’ in pop-up menu to see size of you entire folder and all contents.
- If Windows, just right mouse click the folder of you game (containing main.lua etc) and click ‘info’ (or something like that) in pop-up menu to see size of you entire folder and all contents.
You must have something in your game folder taking up all that space.
No plugin is going to add 72MB, so “No” on your additional question.
Sorry for the misunderstanding, no. The apk file is 25 mb. The size of the app once installed was 80mb. The folder size is less than 500kb.
I say “was 80mb” because I found a clue as to the problem. Upon further inspection, I noticed that the app’s installed size was only 42mb. what was taking up so much space was the app data. I’m still not sure what could be doing that, but its a clue at least. I manage all my game setting from a json file I save in the app’s documents directory, but I check the size of the simulator’s sandbox file and it’s only about 300 bytes. Any ideas?
Thanks. You’ve been very patient
I just checked. The first time I run the app after clearing it’s data, the data jumps from 0 to 15 mb. My first guess is that it is downloading a plugin instead of using the ones in the project folder, but I am not very well acquainted with the Corona build process. I will test my hypothesis tomorrow.
After testing my hypothesis, I found it to be incorrect. Any ideas where to go from here? Thanks
How big is the sandbox directory on your PC/MAC? I ask, because if it is huge on your dev machine, then you’re the one filling it up.
However, if your sandbox directory is small on your dev machine, then my guess is the app sandbox is getting filled by ad requests or something like that. This would probably be considered normal.
Most likely this is cached ad inventory and nothing to worry about.
I think y’all were right and it was just ad inventory. Thanks so much for your patience and help
Looked at this topic too. I am new to this and I thought the Corona build would only include assets that were referenced in the code. Not so! Removed redundant assets from the folder and size reduced from 45MB to 7MB
You can use the exclude option in build.settings to explicitly prevent those assets from being included, but honestly, it’s best to keep extra resources, like original PSD files and such in folders outside of your project. The only files we automatically exclude are hidden files (i.e. files and folders whose names start with a period.)
Rob
also note that apk-size is not install-size. the apk is the zipped distribution, the executable thing is the extracted dex files (and native libs). install-size is typically around 2X apk-size, because the apk is retained, tho it varies – add any extracted assets (images, sound, music, video, etc), any expansion files downloaded, any private data created or cached data obtained after running it, etc.
A lot of that 80MB is your assets. If you build the ‘Hello World’ sample that comes with Corona you’ll see it comes out to < 8MB.
Some of you 80MB might also be plugins if you are using them, but again most (about 72MB) of that is your assets.
I’m not sure what I have that could be taking up 72 mb of space. I have 0 image or audio files (up to know, I have been making buttons using shape construction). The biggest file I have that isn’t an icon, a scene, or a settings file is a font file, and it’s only 23kb. I really do not have much and I can’t firgure out why it installs so big. Is it possible it has something to do with the ponytiled or appodeal plugins? I really have no idea what it could be. Thanks for your help!
-
Just to be clear, the APK is 80MB?
-
Are you developing on Windows or Mac?
- If Windows, just right mouse click the folder of you game (containing main.lua etc) and click ‘properties’ in pop-up menu to see size of you entire folder and all contents.
- If Windows, just right mouse click the folder of you game (containing main.lua etc) and click ‘info’ (or something like that) in pop-up menu to see size of you entire folder and all contents.
You must have something in your game folder taking up all that space.
No plugin is going to add 72MB, so “No” on your additional question.
Sorry for the misunderstanding, no. The apk file is 25 mb. The size of the app once installed was 80mb. The folder size is less than 500kb.
I say “was 80mb” because I found a clue as to the problem. Upon further inspection, I noticed that the app’s installed size was only 42mb. what was taking up so much space was the app data. I’m still not sure what could be doing that, but its a clue at least. I manage all my game setting from a json file I save in the app’s documents directory, but I check the size of the simulator’s sandbox file and it’s only about 300 bytes. Any ideas?
Thanks. You’ve been very patient
I just checked. The first time I run the app after clearing it’s data, the data jumps from 0 to 15 mb. My first guess is that it is downloading a plugin instead of using the ones in the project folder, but I am not very well acquainted with the Corona build process. I will test my hypothesis tomorrow.
After testing my hypothesis, I found it to be incorrect. Any ideas where to go from here? Thanks
How big is the sandbox directory on your PC/MAC? I ask, because if it is huge on your dev machine, then you’re the one filling it up.
However, if your sandbox directory is small on your dev machine, then my guess is the app sandbox is getting filled by ad requests or something like that. This would probably be considered normal.