Reputation: 831
I am facing a strange problem for which I am totally unable to find the correct reason.
When I build an android project on my system(using eclipse and OS CentOS: Linux(Fedora)), the .apk size is 15Mb while when I compile the same code on my colleague's system(using eclipse On windows XP), the build size is 7Mb which is half the size of .apk build on my system.
Please help...
Upvotes: 3
Views: 287
Reputation: 2506
I found a similar problem when moving source files from Windows to Linux. It seems there are various files that Windows sometimes adds to project folders such as Thumbs.db
which, depending on the amount of project resources, can get fairly sizeable. On Windows file systems, these files are most likely detected as hidden when Eclipse/Android SDK reads through them to build the APK, on Linux however these would not be considered hidden and therefore could be getting bundled with the APK.
It would be worth checking the contents of the folders on both systems for hidden files and clean them.
Upvotes: 1
Reputation: 831
The problem was in my libs.
There were .so files in my libs that were not being committed to Svn as subclipse by default ignores .so files . I found the issue here I fail to commit a .so library file using subclipse and the accepted answer of this question was perfect solution.
So now the .Apk on my colleague's system is same size as on mine(15mb).
Upvotes: 1
Reputation: 4372
Check your /lib
and /res
folder if you are including unwanted libs and unwanted resources
Upvotes: 2