[英]how to reduce app size after monetize (android)
i created an app that was 64 KB in APK and 200 KB after installation but after when i monetized my app using mMedia library and google-play-services_lib my app size increaset to 1.25 mb in APK and after install its 2.79 mb. 我创建了一个APK为64 KB的应用程序,安装后为200 KB,但是当我使用mMedia库和google-play-services_lib货币化我的应用程序后,我的应用程序在APK中的大小增加到1.25 mb,安装后为2.79 mb。
i have seen many apps in small size like 300 kb with ads (monetized) included then why my app size increased that much 我已经看到许多小尺寸的应用,例如包含广告的300 kb(获利),然后为什么我的应用大小增加了这么多
so how can i reduce app size after monetizing my app 因此,在通过我的应用获利后如何减小应用的大小
adding of google-play-services_lib project increase the size of apk. 添加google-play-services_lib项目会增加apk的大小。
Remove unused/unnecessary resource from res folder (drawable-XXX, values-XXX).
从res文件夹(drawable-XXX,values-XXX)中删除未使用/不必要的资源。
many resource in google-play-services_lib\\res folder is no use for you, you can remove it. google-play-services_lib \\ res文件夹中的许多资源对您无用,您可以将其删除。 such as values-af, values-am, .... what you need to keep is color, drawable, drawable-hdpi and values folder.
例如values-af,values-am,...。您需要保留的是颜色,drawable,drawable-hdpi和values文件夹。
Clean and build the apk, you can see the reduction in the size of apk. 清理并构建apk,您可以看到apk大小的减少。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.