-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to build smaller apks? #13
Comments
Hi! I am sorry, but there is no simple way to make it smaller. Usually, it's not very critical for apks to weigh 15 megabytes. Many apps on the Internet weigh 10-20 MB. You can try to ask your question on Buildozer or Python-for-android repositories (buildozer uses p4a for building apk, so it's better to ask p4a). Also, you should know that p4a unpacks your code and standard library code on the first run. You may want to see the full app's size after running. |
Thanks. |
If you really want to decrease apk size, you need to know some things about p4a. Firstly, you need to inspect apk content using 7zip or other unzip tools. There is a private.mp3 file in the assets directory. It is an archive too. Unpack everything and see files. Secondly, you can use python-for-android hooks to manage your apk content. See |
Cool, thanks. Let me digest this piece, I will revert for clarifications. |
The App takes more storage after installation. It is using 61.48MB of storage. The |
@ArtemSBulgakov I have configured buildozer.spec:
blacklist.txt:
But it seems this setup has no effect or am I doing it wrong?. See the full buildozer.spec, blacklist.txt, and the built apk. |
@ArtemSBulgakov We are learning Kivy and building the apk using
buildozer-action
but theapk
file is really huge(~15MB) for a small app like this one. Any pointers to building smaller apks? See the built apk for our demo app here, and its corresponding buildozer.spec and its github action workflow, for your recommendations. Thanks.The text was updated successfully, but these errors were encountered: