+1
日增长
8,948
stars
2,056
forks
334
watchers
1,804
prs
1,588
issues
21
releases
README
python-for-android python-for-android (p4a) is a development tool that packages Python apps into binaries that can run on Android devices. It can generate: Android Package) (APK) files, ready to install locally on a device, especially for testing. This format is used by many app stores but not Google Play Store. Android App Bundle (AAB) files which can be shared on Google Play Store. Android Archive (AAR) files which can be used as a reusable bundle of resources for other projects. It supports multiple CPU architectures. It supports apps developed with Kivy framework, but was built to be flexible about the backend libraries (through "bootstraps"), and also supports PySDL2, PySDL3 and a WebView with a Python web server. It automatically supports dependencies on most pure Python packages. For other packages, including those that depend on C code, a special "recipe" must be written to support cross-compiling. python-for-android comes with recipes for many of the most popular libraries (e.g. numpy and sqlalchemy) built in. python-for-android works by cross-compiling the Python interpreter and its dependencies for Android devices, and bundling it with the app's python code and dependencies. The Python code is then interpreted on the Android device. It is recommended that python-for-android be used via Buildozer, which ensures the correct dependencies are pre-installed, and centralizes the configuration. However, python-for-android is not limited to being used with Buildozer. Documentation More information is available in the online documentation including a quickstart guide. python-for-android is managed by the Kivy team. Support Are you having trouble using python-for-android or any of its related projects in the Kivy ecosystem? Is there an error you don’t understand? Are you trying to figure out how to use it? We have volunteers who can help! The best channels to contact us for support are listed in the latest Contact Us document. Code of Conduct In the interest of fostering an open and welcoming community, we as contributors and maintainers need to ensure participation in our project and our sister projects is a harassment-free and positive experience for everyone. It is vital that all interaction is conducted in a manner conveying respect, open-mindedness and gratitude. Please consult the latest Code of Conduct. Contributors This project exists thanks to all the people who contribute. [Become a contributor]. Backers Thank you to all of our backers! 🙏 [Become a backer] Sponsors Special thanks to all of our sponsors, past and present. Support this project by [becoming a sponsor]. Here are our top current sponsors. Please click through to see their websites, and support them as they support us.
Top issues
#2628ImportError for fitz / PyMuPDF ImportError: dlopen failed: _fitz.so is 64-bit instead of 32-bit26 comments · 2022-06-28#2461Kivy App on Android keyboard/TextInput doesn't work properly: backspace has no effect and input doubles randomly17 comments · 2021-05-31#2720Black screen when starting the app with `fullscreen = 1`14 comments · 2022-12-22#3362[Feature]: auto-discover Java sources bundled in pip installed packages12 comments · 2026-08-04#3397found a high servity vulnerability11 comments · 2026-10-17#2930Sort values in log under `get_recipe_order_and_bootstrap` and `get_recipe_order_and_bootstrap` functions.9 comments · 2023-12-04#2053Android service crashes when Kivy frontend app is stopped9 comments · 2020-01-21#2976 Enhancement Request: Support for FCM Push Notification Configuration in buildozer.spec8 comments · 2024-02-21
Latest release
v2026.05.09 v2026.05.09 2026-05-10What's Changed Merge master into develop by @misl6 in https://github.com/kivy/python-for-android/pull/2960 recipes: new materialyoucolor recipe by @T-Dynamos in https://github.com/kivy/python-for-android/pull/2950 Add support for display cutouts in manifest and add methods to retrieve data by @kuzeyron in https://github.com/kivy/python-for-android/pull/2969 (recipes/materialyoucolor): update to 2.0.7 by @T-Dynamos in https://github.com/kivy/python-for-android/pull/2975 Arch type error when creating apk for project with setup.py by @pramodin in https://github.com/kivy/python-for-andro