Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

python-for-android

> 编程语言
Open source

Turn your Python application into an Android APK

8.9K stars0 likes0 views
WebsiteGitHub

About

Turn your Python application into an Android APK

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.

Issues· 211 open

View all issuesOpen on GitHub
  • #3382

    bug: recipes: ffmpeg: hardware acc flags override --disable-everything flag

    Updated Sep 18, 2026
  • #3381

    Использование разных версий Python

    Updated Sep 15, 2026
  • #3362

    [Feature]: auto-discover Java sources bundled in pip installed packages

    feature-requestUpdated Aug 22, 2026
  • #3364

    ImportError: cannot import name 'BuildDependencyInstallError' while compiling due to inconsistent p4a pip (Kivy-Buildozer)

    Updated Aug 18, 2026
  • #2945

    E2EE OMEMO support

    Updated Jul 29, 2026
  • #3258

    Build Process Enhancement: Exclude redundant source files from `dists` directory

    Priority: HighRELEASE BLOCKERUpdated Jun 25, 2026
  • #3348

    Recipe request: h3 for Android / timezonefinder 8.x fails with x86_64 h3 .so in arm64-v8a APK

    Updated Jun 21, 2026
  • #3344

    ffpyplayer build fails with ffmpeg 8.0.1 (from develop)

    Updated Jun 6, 2026
  • #3285

    Suggestions for improving recipes and avoiding build errors

    Priority: HighPriority: CriticalStatus: has PRUpdated May 23, 2026
  • #3201

    Recipe: `aioquic`

    recipeUpdated May 23, 2026

> Tags

Pythonandroidapkkivypackaging

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言