Reputation: 3165
My app apk file's volume is 56MB, so can't upload on Google Play store because it is over 50MB limit.
My app's image resource has occupied following:
(drawable-hdpi, 319 files, 12.5MB
drawable-mdpi, 346 files, 12.7MB
drawable-xhdpi, 126 files, 11.9MB
drawable-xxxhdpi, 9 files, 11.2MB)
total 48.3MB
Should I separate resource files to expansion file?
Is there another solution?
Upvotes: 3
Views: 571
Reputation: 20080
As of recently (Sept. 2015), you are able to upload APKs up to 100 MB if you are targeting Android 2.3 and above - you can read more about it on this help page. Since your app is 56 MB, you should be okay. There is also the Android developers blogspot article explaining the changes here.
Alternatively, or if your app exceeds the 100 MB APK limit, you can use expansion files. These are additional files that are downloaded after your app has installed and can be up to 4 GB (to be specific, you can have two expansion files of up to 2 GB each). You can learn more about expansion files on this page on the Android Developers website.
Upvotes: 1
Reputation: 21756
Although @Derek has already suggested one good solution. Here is one more suggestion.
As per Google's information, currently only 14.3% of devices are having mdpi
density. I think you can remove files from the drawable-mdpi
which are targeting mdpi
screen density. Just in case if your app will be installed on mdpi screen density device Android framework will pick drawables from hdpi so there will not be any issue.
Google link- https://developer.android.com/about/dashboards/index.html#Screens
Upvotes: 1
Reputation: 8211
You should try to optimize your png size if you have not done so.
Here is a free and common tools
Upvotes: 4
Reputation: 7666
Reduce your bitmaps size (reduce quality or pixel size), that is the best way because you can't upload apk over 50Mb. The "only way" to do it, is by having an installer app (apk) and download the extra files to sdcard (like obb files). Read the oficial documentation: http://developer.android.com/google/play/expansion-files.html
Upvotes: 1