How to reduce apk file size ??

275 views
Skip to first unread message

Cholan Empire

unread,
Jun 8, 2021, 7:42:25 AM6/8/21
to kivy-...@googlegroups.com
Hi everyone i want to know reduce my kivy  android apk file size.do you have any easiest way to reduce apk file size..

Degenerate Tech

unread,
Jun 8, 2021, 8:24:15 AM6/8/21
to Kivy users support
Requirements blacklist (APK size optimization)

To optimize the size of the .apk file that p4a builds for you, you can blacklist certain core components. Per default, p4a will add python with batteries included as would be expected on desktop, including openssl, sqlite3 and other components you may not use.

To blacklist an item, specify the --blacklist-requirements option:

p4a apk ... --blacklist-requirements=sqlite3

At the moment, the following core components can be blacklisted (if you don’t want to use them) to decrease APK size:

  • android disables p4a’s android module (see android for Android API access)
  • libffi disables ctypes stdlib module
  • openssl disables ssl stdlib module
  • sqlite3 disables sqlite3 stdlib module

Degenerate Tech

unread,
Jun 8, 2021, 8:27:58 AM6/8/21
to Kivy users support
i think .you can reduce size apk only  
2 or 3mb .
minimum size of kivy apk is 12 mb.

Cholan Empire

unread,
Jun 8, 2021, 1:18:42 PM6/8/21
to kivy-...@googlegroups.com
Brother I am sorry for silly  questions .my be my next doubt has been silly for you but me that make me sense..... In which folder could I find the p4a --blocklist requirements?????

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/6b7c7061-2ce1-400f-93ca-cbe582574003n%40googlegroups.com.

Degenerate Tech

unread,
Jun 9, 2021, 2:16:38 AM6/9/21
to Kivy users support
p4a is command line tools .You have to install p4a .buildozer also using p4a program to build apk .If you are new in kivy my suggestion is use buildozer .
Reply all
Reply to author
Forward
0 new messages