Buildozer

1.5.0 · active · verified Fri Apr 17

Buildozer is a generic Python packager designed to create application bundles for various platforms, primarily Android and iOS, from Python projects (most notably Kivy applications). It automates the complex process of compiling Python code and its dependencies into native packages (APKs, AABs, IPAs). The current version is 1.5.0, and it generally follows Kivy's release cycle, with new versions typically released every few months to support updated SDKs and Kivy versions.

Common errors

Warnings

Install

Quickstart

Buildozer is primarily a command-line tool. After installing Buildozer and creating a Kivy application (e.g., `main.py`), navigate to your project directory in the terminal. First, initialize Buildozer for your project, which creates a `buildozer.spec` file: ```bash buildozer init ``` Edit `buildozer.spec` to configure your app, paying attention to `requirements` (e.g., `requirements = python3,kivy`) and `android.min_sdk_version`. Then, build your application for Android (this will download SDKs/NDKs and compile): ```bash buildozer android debug ``` The resulting `.apk` or `.aab` will be found in the `bin/` directory.

# main.py
from kivy.app import App
from kivy.uix.label import Label

class MyApp(App):
    def build(self):
        return Label(text='Hello, Buildozer!')

if __name__ == '__main__':
    MyApp().run()

view raw JSON →