buildozer: Turns Python applications into binary packages ready for installation on a number of platforms. · Pythie
Buildozer
Buildozer is a development tool for turning Python
applications into binary packages ready for installation on any of a number of
platforms, including mobile devices.
The app developer provides a single "buildozer.spec" file, which describes the
application's requirements and settings, such as title and icons. Buildozer can
then create installable packages for Android, iOS, Windows, macOS and/or Linux.
Buildozer is managed by the Kivy Team . It relies
on its sibling projects:
python-for-android and
Kivy for iOS . It has features to make
building apps using the Kivy framework easier,
but it can be used independently - even with other GUI frameworks.
For Android, buildozer will automatically download and prepare the
build dependencies. For more information, see
Android SDK NDK Information .
[!NOTE]
This tool is unrelated to the online build service,
buildozer.io.
Installation
Installing Buildozer with target Python 3 (default): Buildozer incorporates a number of technologies, and has a complicated
dependencies, including platform dependencies outside of Python.
This means installation is more than a simple pip install; many of our support
requests are related to missing dependencies.
So, it is important to follow the instructions carefully.
Buildozer Docker image A Dockerfile is available to use buildozer through a Docker environment.
docker build --tag=kivy/buildozer .
docker buildx build --platform=linux/amd64 --tag=kivy/buildozer .
docker run --interactive --tty --rm \
--volume "$PWD":/home/user/hostcwd \
kivy/buildozer --version
Example Build with Caching
Build and keep downloaded SDK and NDK in ~/.buildozer directory:
docker run --interactive --tty --rm \
--volume "$HOME/.buildozer":/home/user/.buildozer \
--volume "$PWD":/home/user/hostcwd \
kivy/buildozer android debug
The image is published to both Docker Hub and GitHub Container Registry and can be pulled from both:
docker pull kivy/buildozer:latest
docker pull ghcr.io/kivy/buildozer:latest
Buildozer GitHub action
Usage Usage:
buildozer [--profile <name>] [--verbose] [target] <command>...
buildozer --version
Available targets:
android Android target, based on python-for-android project
ios iOS target, based on kivy-ios project
Global commands (without target):
distclean Clean the whole Buildozer environment
help Show the Buildozer help
init Create an initial buildozer.spec in the current directory
serve Serve the bin directory via SimpleHTTPServer
setdefault Set the default command to run when no arguments are given
version Show the Buildozer version
Target commands:
clean Clean the target environment
update Update the target dependencies
debug Build the application in debug mode
release Build the application in release mode
deploy Deploy the application on the device
run Run the application on the device
serve Serve the bin directory via SimpleHTTPServer
Target "ios" commands:
list_identities List the available identities to use for signing.
xcode Open the xcode project.
Target "android" commands:
adb Run adb from the Android SDK. Args must come after --, or
use --alias to make an alias
logcat Show the log from the device
p4a Run p4a commands. Args must come after --, or use --alias
to make an alias
Examples of Buildozer commands # buildozer target command
buildozer android clean
buildozer android update
buildozer android deploy
buildozer android debug
buildozer android release
# or all in one (compile in debug, deploy on device)
buildozer android debug deploy
# set the default command if nothing set
buildozer setdefault android debug deploy run
buildozer.specRun buildozer init to have a new buildozer.spec file copied into the current
working directory. Edit it before running your first build.
Default config You can override the value of any buildozer.spec config token by
setting an appropriate environment variable. These are all of the
form $SECTION_TOKEN, where SECTION is the config file section and
TOKEN is the config token to override. Dots are replaced by
underscores.
For example, here are some config tokens from the [app] section of the
config, along with the environment variables that would override them.
title -> $APP_TITLE
package.name -> $APP_PACKAGE_NAME
p4a.source_dir -> $APP_P4A_SOURCE_DIR
License
Documentation
Support Are you having trouble using Buildozer 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.
Contributing Buildozer is part of the Kivy ecosystem - a large group of
products used by many thousands of developers for free, but it
is built entirely by the contributions of volunteers. We welcome (and rely on)
users who want to give back to the community by contributing to the project.
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.
Contributors
Backers
Sponsors Here are our top current sponsors. Please click through to see their websites,
and support them as they support us.
Change Log
Buildozer Error ValueError: read of closed file #760
kivy app does not support android 10+ #1551
Waiting for a response from the server socket #1550
orientation = portrait fails #1546
When I run the application on my smartphone, the application crashes and gives an error in logcat [WARNING] [Base ] Unknown <android> provider #1545
Android application crashes trying to use local storage #1544
Buildozer failed to work with NDK 25b (minimum supported by p4a) #1543
The Widget MDTopAppBar is not working in Android 12.0 #1542
The 'buildozer==1.4.1.dev0' distribution was not found and is required by the application #1541
anyone knows how to install torch with buildozer compiler? #1538
Building Kivy from a GitHub repository #1536
Request runtime Permission for BLUETOOTH (NEARBY DEVICES) Android 31 #1534
Configure.ac is outdated #1533
Problem in psutil Recipe #1532
Two errors in pyzmq recipe #1531
Buildozer failed to execute the last command!!!!! #1530
Error building apk. /usr/bin/python -m pythonforandroidtoolchain apk #1528
ERROR While run Buildozer android Debug #1527
Buildozer Requires python-for-android version with AAB #1524
Error JVM exception occurred: Didn't find class "com.google.android.gms.auth.api.signin.GoogleSignInOptions" #1523
Could not resolve all files for configuration ':classpath'. #1522
Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x40 but on working app #1521
Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x40 in tid 10919 (SDLThread), pid 10882 (org.test.myapp) #1520
A problem occurred evaluating root project #1510
ModuleNotFoundError: No module named 'kivy._clock' #1509
Buildozer Raise Error when I try to convert my file... #1507
i got this error while trying to create an apk using buildozer #1506
# Command failed: ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=kivy_example', '--bootstrap=sdl2', '--requirements=python3,kivy==2.0.0rc4,kivy_garden.graph,numpy', '--arch=arm64-v8a', '--arch=armeabi-v7a', '--copy-libs', '--color=always', '--storage-dir=/home/skander/kivy_examples/graphs/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug'] #1505
Cannot allocate memory #1504
SSL: CERTIFICATE_VERIFY_FAILED only on Android #1502
Command failed: ['tar', 'xzf', 'apache-ant-1.9.4-bin.tar.gz'] #1501
error while building liblzma #1498
How to add custom requirements in your Colab project with Buildozer? #1496
Buildozer requires a p4a version with AAB support. #1493
APK Keeps crashing #1488
android.presplash_color bug #1487
mew error #1486
[ERROR] Hostpython3 recently got an error #1485
Buildozer issue on MacOS M1 #1484
kivy + buildozer one place app name and version conventions #1482
[Feature Request] Arm64 ubuntu support #1480
ffmpeg is not supported in latest buildozer update. #1474
Android : Some .jpg are not displayed, some are. #1471
Issue while converting my python file to .aab: ERROR: Trying to release a package that starts with org.test #1469
Logs: #1468
Issue while converting my python file to .aab: ERROR: Trying to release a package that starts with org.test #1467
Buildozer stopped working suddenly #1459
hostpython3 download error, ssl error #1441
Feature: Make buildozer expose app resources folder. #1397
Error while trying to create an APK using Buildozer for Kivy Image processing application. Below is the Error Log. Unable to create APK file #1376
During APK build, matplotlib build tries to link against wrong libpng version #1362
No such file or directory buildozer debug run #1361
Question: How can I change the location of org.testapp on android? #1359
docker buildozer Aidl not found, please install it. #1357
Building Android app on macOS Catalina gives zlib headers error #1334
Has anyone succeeded in converting apk on M1? #1331
configure: error: cannot compute sizeof (long double) #1329
python==3.9.5 #1325
Buildozer fails to execute the last command #1324
build is crashing when I am trying to run it via docker #1323
build an android app with ffpyplayer #1322
Build APK with both x86 and arm libs #1321
Build failed on MacMini with M1 Processor while PhaseScriptExecution Script-113D17E2153E3DB5001310A6.sh #1318
Build APK Error when I append Numpy OpenCV-python matplotlib to requirements , . #1316
Error in compilation #1313
org/kivy/android/PythonActivity java.lang.NoClassDefFoundError #1308
Issue building a simple app, probably a user error #1299
Buildozer.spec add numpy to requirements #1282
Libffi not compiling (aarch64/arm64/armv8) #1281
android debug process stuck at downloading sdl2 #1273
having a problem in installing buildozer for kivy 1.11.1 in Ubuntu 18 #1270
Having a problem in installing Buildozer for Kivy in Ubuntu 18.04(Eror:autogen.sh) #1266
Can't build on MacOS 11.0.1 BigSure #1262
NDK Missing #1250
buildozer crashes while applying fix_numpy_includes.patch for pandas #1244
Error when using buildozer android debug #1112
Buildozer install doc is very out of date #819
Removes broken and unneeded checks, now we can support additional permission syntaxes. #1549 (misl6 )
Makes orientation option cross-platform and conform to latest python-for-android changes, adds android.manifest.orientation. #1548 (misl6 )
Update Python versions in test matrix #1540 (misl6 )
Flake8 does not support inline comments for any of the keys. + Cleanup some ignored errors/warnings #1539 (misl6 )
Removed (broken) --no-byte-compile-pyo support and added support for --no-byte-compile-python #1525 (misl6 )
CeDeROM add FreeBSD support 20221014. #1516 (cederom )
Add resources #1513 (RobertFlatt )
Update Defaults #1512 (RobertFlatt )
Update installation.rst #1500 (RobertFlatt )
Fix presplash color #1497 (Apacelus )
Fixes some E275 - assert is a keyword. #1495 (misl6 )
Show output during aab support check, as p4a may require the user input #1494 (misl6 )
Removes six dependency in tests #1475 (misl6 )
p4a prerequisites install should be done in non-interactive mode during CI builds. #1465 (misl6 )
Bump version to 1.4.1.dev0 #1464 (misl6 )
Avoid the usage of shell=True in Popen, which could lead to potential security risks. #1435 (misl6 )
Add support for p4a option --res_xml #1230 (rambo )
error #1461
error #1460
ModuleNotFoundError: No module named '_bz2' #1457
java.nio.file.NoSuchFileException #1456
kivy app doesnt start on android #1455
(WSL) buildozer adb doesn't recognize usb #1453
Error: Command [...] returned non-zero exit status 1 #1452
Command failed: /home/username/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager --sdk_root=/home/username/.buildozer/android/platform/android-sdk platform-tools #1449
gradlew assembly Debug execution error when building apk #1447
How to run Python script in background in android? #1446
buildozer appclean doesnt work. #1443
Flags android.gradle_dependencies && android.add_jars don't work. #1442
ModuleNotFoundError: No module named 'PIL' #1440
Bulldozer error while running "buildozer -v android debug" #1439
started app on three different andoid phones - there is no internet connection on 2 of them #1434
Not Able to change the python version under buildozer 1.3.0 #1432
ndk r22 invalid #1431
error building numpy with bulldozer #1426
sh.CommandNotFound: cmake #1424
Compile-time name 'JNIUS_PYTHON3' not defined #1422
Error Building hostpython3 for arm64-v8a with buildozer #1421
building for android failed #1420
Error "Aidl not found, please install it." #1416
Buildozer Release Signign Issue #1415
Unable to run the buildozer command on initial application #1414
buildozer -v android debug error,please help me,thank you! #1413
Buildozer failed to create android app #1412
module encodings found error or something else #1408
[ERROR]: Build failed: Requested API target 27 is not available, install it with the SDK android tool. #1404
buildozer requirements for firebase-admin Python? #1402
I am given the following error, which I believe is due to recent changes for aab support in buildozer: " This buildozer version requires a python-for-android version with AAB (Android App Bundle) support. Please update your pinned version accordingly #1401
How to mention Python modules used in Kivy buildozer.spec file? #1400
Приложение вылетает при запуске #1399
Buildozer deploy failed with python3 -m venv venv command #1389
Gradlew Build error for Android on Linux #1371
AAB #1353
Error creating apk on Macos Big Sur #1345
BUILD FAILED #1335
Updates default buildozer.spec NDK from 19b to 23b #1462 (misl6 )
use p4a --add-source instead of manual copy of java files #1450 (tito )
fix aar build #1444 (mzakharo )
Our self-hosted Apple Silicon runner now has been migrated to actions/runner v2.292.0 which now supports arm64 natively #1438 (misl6 )
Changes for NDK23 #1427 (HyTurtle )
Bump version to 1.4.0.dev0 #1411 (misl6 )
[Docker image] SSLError("Can't connect to HTTPS URL because the SSL module is not available.") #1096
NameError: name 'raw_input' is not defined #1070
Setup coverage testing #1058
AttributeError: 'function' object has no attribute 'glob' #1044
Pygallary #1109
Buildozer compilation ERROR: No matching distribution found for hostpython2 (from -r requirements.txt (line 2)) #1104
Circular errors with Java version and Android SDK #1103
APK not running on Android 10? #1102
Buildozer command fails: Could not fetch URL https://pypi.org/simple/pip/ : There was a problem confirming the ssl certificate #1095
Command Failed Error #1092
APK Can't be install (package can't be install in android) #1091
buildozer Install python 3.8.1 #1090
i have weak reference error while using python 3.8 #1089
buildozer is choosing odd venv, and using a different python? #1080
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding #1076
Buildozer just wont compile my app #1074
Autoreconf not found? #1072
error while buildozer android debug deploy run #1064
Syntax error in Kivy and KivyMD dependencies file when using Buildozer to compile KivyMD app #1051
Adding CFFI as a Buildozer requirement breaks the Android build #1050
Is buildozer compatible with Python 3.7 #1048
Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jre8:1.2.0 #1042
Error while running buildozer android debug deploy #1038
cant able to build apk on linux with python3 #1033
Keystore was tampered with, or password was incorrect #1028
Windows support to build Android APK #1022
How to make third party site-packages 'requests' run on Android #1021
Crash on buildozer android debug command. Command failed: /usr/bin/python -m pythonforandroid.toolchain #1017
Build failed: Couldn't find executable for CC #1014
Cloning Error of python-for-android #1008
checking whether the C compiler works... no #1007
Kivy :How to ask for storage permission when app starts #1004
Buildozer :No module named 'numpy.core._multiarray_umath' #1002
Kivy app Crashes while import openpyxl #1001
Warning when i run "buildozer -v android debug" #982
sdkmanager is notinstalled #927
Accept license terms prompt is not visible #916
Unable to build release. File "/usr/lib/python3.6/shutil.py", line 96, in copyfile with open(src, 'rb') as fsrc: IOError: [Errno 2] No such file or directory: #851
error: cannot find -lpython3.7 #842
android.accept_sdk_license may misbehave #816
Python3 error with pexpect #221
Sup Req : Buildozer debug does not complete - Error threading.py, sh.py, etc.. #1000
Buildozer failed to execute the last command #999
Android fullscreen mode: cannot hide status bar! #989
buildozer uses wrong python version and disrespects requirement versions #988
The version of Kivy installed on this system is too old. #987
Failed to download any source lists! #986
Aidl cannot be executed error buildozer #984
buildozer debug error "[WARNING]" when i run buildozer andriod debug #980
Building kivy app with python3 requirement gives "No compiled python is present to zip, skipping." warning and "Unable to import kivy._clock. Have you perhaps forgotten to compile kivy? ..." error when run on android device. #977
Java And Python-for-android toolchain errors #975
buildozer + python3 #973
Error while running ".buildozer.../native-build/python -OO -m compileall -b -f /.../app #972
buildozer fails with kivymd link #968
ndk_platform doesn't exist: /home/rr/android-ndk-r20/platforms/android-20/arch-arm #966
Paused at Installing/updating SDK platform tools if necessary #965
java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema #962
please add aidl into Dockerfile #960
Missing _ctypes module #955
Kivy-Buildozer release version doesnt upload google store #953
buildozer using wrong kivy version #943
buildozer ndk-api=21 error #942
app crash #939
ERROR: JAVA_HOME is set to an invalid directory: /usr/lib/jvm/java-8-oracle #929
no-issue #926
can't find file to patch toggle_jpg_png_webp.patch #921
No matching distribution found for io #915
Error: No matching distribution found for io(from -r requirements.txt (line 5)) #914
I'm also experiencing the same issue, using macOS 10.14.3 and no Docker -- just plain Buildozer from the PyPi repo. What is the recommended course of action to fix this? #913
app crash #911
warnings while building apk using buildozer #910
buildozer error please help me!! #906
My application does not open in android but if it works in geany, help please. #903
[Docker image] Can't compile apk: /bin/tar ... "Cannot utime: Operation not permitted" #902
Fails to call numpy fft on android #899
Command failed: /usr/bin/python3 -m pythonforandroid.toolchain #898
error: C compiler cannot create executables #897
stopped at "Installing/updating SDK platform tools if necessary" #896
ValueError: Tried to access ndk_ver but it has not been set - this should not happen, something went wrong! #893
Buildozer not installing from custom source folders #892
Error with build requirements PIL (Python 3) #890
rocker plants.cvs -an active -r -p rco.png #889
rocker plants.cvs -an active -r -p rco.png #888
rocker plants.cvs -an active -r -p rco.png #887
rocker plants.cvs -an active -r -p rco.png #886
rocker plants.cvs -an active -r -p rco.png #885
host=arm-linux-androideabi #884
Buildozer has attribute errors and will not run #883
buildozer on osx not working #879
Android API Issue #877
What is the way to add folders and files? #875
Buildozer Error #874
Problem with "Unpacking sdl2_image" and "Parent module 'pythonforandroid.recipes' not found" #872
buildozer android debug deploy is stuck #870
running autoreconf -vif #866
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema #862
Can not build x86 APK file #861
But then a lot more issues, deep in the weeds now. #858
Create tests for PR fix bug when logcat value which cannot be decode to utf-8 #857
Can't Cythonize pyjnius: TypeError: can't pickle Argument objects #850
buildozer -h complains about NoneType target #849
Building failes at compiling openssl[armeabi-v7a] #841
Applying patches for libffi[armeabi-v7a] #840
Errors while running buildozer android debug deploy #832
"Command failed" when running "buildozer android debug deploy run" #829
Build Python3 for Android with Azure-keyvault and merest #828
Outdated Android NDK download URL in Kivy Virtual Machine #827
App crashes on startup #826
I found the origin of the problem mentioned in issue #694 (Aidl not found) #824
download() is not CI log friendly #823
Application stuck in portrait mode #820
Orientation landscape when set to portrait #818
Certain python requirements fail due to \_ctypes #815
Running buildozer help crashes #813
[Buildozer 0.40.dev0, Buildozer 0.39] AttributeError: 'Buildozer' object has no attribute 'translate_target' #812
Version number failing to be added to apk #810
Virtual machine out of date #764
Docker doesn't build #751
Buildozer exit code on recipe fail #674
not able to release apk in release mode - build failed #363
Issue with NDK r11b #308
Feature: Create a compat.py for correct PY3 support and implement it #300
Curl missing in KivyVM #296
Virtual machine image could have better support for international keyboards #295
Virtual machine image does not have enough disk space #294
Not quite an issue, just some dependency stuff #247
# Command failed: ./distribute.sh -m "kivy" -d "stapp" #204
Command ./distribute.sh failed -- no buildozer.spec found when it exists #203
buildozer -v android debug : Compile fails at fcntlmodule.c #196
Build errors on OSX 10.10 (for android) #165
Feature Request: Vagrantfile #154
TypeError: read() takes exactly 2 arguments (3 given) #793
TypeError: read() takes exactly 2 arguments (3 given) #792
AttributeError: 'str' object has no attribute 'decode' #756
Openssl compilation fails, '__atomic' undefined #800
--ndk-api appears twice #798
Error in toolchain.py and argument --ndk-api 9 #797
Target ndk-api is 19, but the **python3 recipe supports only 21** #796
Add support for --frameworks on iOS #790
Hello World impossible: checking whether the C compiler works... no #785
Buildozer 0.37 UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 #782
APK Crashes on start with no obvious cause #779
Outdated Android NDK download URL in Kivy Virtual Machine #778
Buildozer "gradlew failed!" #777
Conflicting documentation Python2 versus Python3 #774
No valid --ndk-api received, using the default of 0 = min(android-api=0, default ndk-api=21) #772
default.spec specifies python3 but also incompatible NDK and API settings #770
Error: minsdk argument does not match the api that is compiled against #768
Need to support sensorLandscape #762
minsdk argument does not match the api that is compiled against #761
Need to be able to specify the NDK API target #758
Buildozer cannot import name pythran_is_numpy_func_supported #753
Python3 recipe not building, error with self.ctx.python_recipe #752
compile error #744
APK build failed "ndk_platform doesn't exist" (Python3.6; android.api = 27) #742
Logo Design Proposal #734
android clean not working (FileNotFoundError: [Errno 2] No such file or directory) #732
Can't Make an APK via Buildozer #712
App build Failed #707
ERROR: /home/kivy/.buildozer/android/platform/apache-ant-1.9.4/bin/ant failed! #706
APK using txt file in main.py issue. #704
"Copying APK" fails because of wrong path used #699
Cannot build #697
Fail on build #692
Cannot build "Hello World" APK #687
Error when building an android APK using Kivy #684
can't get audio stream from a server #683
Continuous integration testing #679
Post build fails because copying built apk fails #671
Buildozer can't compile for Android on Manjaro Linux #670
Icon/Logo Proposal #669
Buildozer cant compile platform Ubuntu 16.04 #668
Buildozer gets stuck at unpacking kivy #667
Kivy window #666
Failed building wheel for pyaudio #665
Buildozer compilation gets stuck #663
IOError: [Errno 2] No such file or directory: u'/home/samurai-girl/python2/.buildozer/android/platform/build/dists/test/build/outputs/apk/test-debug.apk' #662
Unable to build _ctypes.so #660
error while packaging for android on macOS #659
Command failed: /usr/bin/python2 -m pythonforandroid.toolchain #658
Cannot build apk with buildozer android debug #656
How to correctly build an APK package with Python 3? #655
SDK does not have any Build Tools installed. #652
Error building Kivy app with opencv(and numpy) - raise CommandNotFoundError(path) #651
FileNotFoundError: [Errno 2] #649
The python3crystax recipe can only be built when using the CrystaX NDK. Exiting. #648
build apk : error can not find the build/output folder #647
help me building cryptography #646
sslv3 alert handshake failure on Addroid #643
Opening Android SDK Manager to download "Google Repository" and "Google Play services" #642
kivy python host failed #641
python.host failed #640
Kivy Crashing #638
.so lib files missing debug symbols #637
Kivy app doesn't run #634
"* daemon not running. starting it now on port 5037 * * daemon started successfully *" #633
FileNotFoundError: [Errno 2] No such file or directory: '/home/alex/Documents/pengame/.buildozer/android/platform/build/dists/helloworldapp/build/outputs/apk/helloworldapp-debug.apk' #632
Compiling Kivy app to apk fails with a pip error #631
ERROR: /home/ubuntu/.buildozer/android/platform/apache-ant-1.9.4/bin/ant failed! #625
Build error when building Kivy app #624
buildozer debug is not running this error is showing #622
unexpected e_machine: 3 #621
buildozer matplotlib #617
IOError: [Errno 2] No such file or directory: u'/Users/gauravgupta/kivy/.buildozer/android/platform/build/dists/myellipse/build/outputs/apk/myellipse-debug.apk' #613
Build failing in final ANT stage #610
Cannot build apk #606
Installing buildozer for Python 3 failed #604
FileNotFoundError at end of build when copying APK file. #602
BUILD FAILED #601
Error with buildozer #591
ImportError: No module named Cython.Distutils While running buildozer android debug #587
python 2.7 compile with NDK 15c #584
Problem upgrade to newest version #583
Simple Kivy test app can't compile to android apk #581
Apple Watch Support #574
Skip error or better error message: requirements with extra comma #562
failed to build numpy on Mac #557
p4a.source_dir set and android clean --> crash #556
Kivy python android build error? #555
python3 import networkx needs lib2to3 but cannot be imported #554
buildozer android debug deploy run ERROR #550
App Crashes #541
Requirements: Requests, Ssl #539
Error: Aidl cannot be executed #532
Kivy and Beautifulsoup with Buildozer fail on Python 3. #529
I'm having similar problem #528
Awkward error while building apk #526
The "android" command is deprecated #519
Kivy: Permission denied (when running buildozer android on Mac OS X) #517
Extraction of "Kivy2.7z" failed #516
buildozer still download ndk from wrong path #506
android-new landscape error on restart #482
Add possibility to choose pip version for modules in the requirements section #475
Bulldozer android_new fails when ffmpeg is added to the requirements: No C Compiler found! #463
CalledProcessError: Command '['python', 'package_app.py', '--displayname=Music Favorites']' returned non-zero exit status 1 #448
[Errno 13] Permission denied; Buildozer on Flask Server #445
Error while compiling a kivy app for android (undefined reference to 'SDL_main' collect2: error: ld returned 1 exit status) #438
AsyncImage not loading in .apk #433
Big Bug, ORMs cant find sqlite3.so #426
cp: cannot stat '~/.buildozer/android/platform/python-for-android/src/libs/armeabi/*.so': No such file or directory #422
using android_new causes missing packages errors #420
Buildozer fails with "Command '['ant', 'debug']' returned non-zero exit status 1" #419
Buildozer fails to build when ffmpeg is added #418
Build on arm64 android #412
Building with "android_new" target fails due to missing architecture on pythonforandroid.toolchain apk #407
Command '['ant', 'debug']' returned non-zero exit status 1 when building PIL library #406
Android, Pygame backend: buildozer android debug deploy run tries to launch wrong Activity #401
AttributeError: 'NoneType' object has no attribute 'splitlines' #400
Pyzmq import fails on Android with python2 / kivy 1.9 / cython 0.23 #397
Python 3: # Aidl cannot be executed AttributeError: 'module' object has no attribute 'maxint' #392
subprocess.CalledProcessError #391
python.host could not find platform independent libraries #390
Buildozer android_new fails #388
toolchain.py: error: argument --private is required #384
Android fails on running Kivy apk #381
ImportError: No module named plyer with android_new as a target #379
buildozer -v android debug runs into problem #376
subprocess.CalledProcessError #372
Can't install Pillow , return errors #371
failed to load ctypes as android app built on OSX #368
old_toolchain not shows images #367
Buildozer deployment dlopen failed libSDL2.so has unexpected e_machine: 40 #365
Rebuild only selected packages #226
Error in debug, install platform, Indexerror. #731
Buildozer looking for nonexistent script #749
Can not build APK file with buildozer. UnicodeDecodeError #746
CrystaX no longer the preferred NDK for Python3 #745
AKP build fails (android.py line 524) #738
Buildozer 0.35 with IndexError: list index out of range on Mac OS #737
cannot build pyjnius for armeabi-v7a #735
I can't package my app the way i always did. #733
OSError: [Errno 18] Invalid cross-device link #644
Correctly write out a sub-process's stdout when using Python 3. #743 (dbrnz )
Explicitly run pip3 when using Python 3 #741 (dbrnz )
workaround for working in WSL #740 (tshirtman )
Allow for install\_reqs line having whitespace at start. #736 (dbrnz )
Fix Support config file name #730 (dessant )
Buildozer should not regex/hack install_reqs #722
Command failed: /usr/bin/python -m pythonforandroid.toolchain create... #727
buildozer fails at installing platfrom #726
Unable to build APK #725
Buildozer APK not working: OS X, Docker, or fresh Ubuntu 16.04 #723
gcc Segmentation Fault #720
Error debugging for android #719
ndk_platform doesn't exist (when switching to API = 28) #717
FileNotFoundError: [Errno 2] (SOLVED) - It was Encoding Error #715
SDL_JAVA_PACKAGE_PATH error? #714
Python3Crystax instructions in README #710
Bug or support request? #708
build requirement failed #701
I am using Virtual Machine provided in the official kivy website for building android APK, this is the part of log file #696
App minimizes instantly after launching. #695
Aidl not detected #694
python 3 ssl #690
Is there something like multiprocessing? #685
Kivy in pyCharm #682
Toolchain error. Help,please! #678
virtual machine does not compile apk Fails with errors #677
An error in Buildozer Apk (Python Kivy) Help PLZ! #676
App crashes on android but works fine in idle window using buildozer #675
Pyjnius exception Adbuddiz class not found #661
Buildozer failed to execute the last command #/usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=blueb --bootstrap=sdl2 --requirements=python3crystax,kivy --arch x86 --copy-libs --color=always --storage-dir=/home/jp/Desktop/BlueB/.buildozer/android/platform/build #654
java.lang.ClassNotFoundException: sun.misc.BASE64Encoder #639
IOError: [Errno 2] No such file or directory: #636
App crashes with aws boto3 #635
APK Immediately Closes After Opening in Debug, Release, and Zipaligned & Signed Versions #629
Using Python/Buildozer to compile Kivy for Android #628
"configure: error: C compiler cannot create executables See `config.log' for more details" (# Command failed: ./distribute.sh -m "kivy" -d "pollygot") #627
"OSError: [Errno 30] Read-only file system" (# Command failed: virtualenv --python=python2.7 ./venv) #626
Java compiling issue: buildozer uses obsolete source value 1.5 #619
Cloning into 'python-for-android-new-toolchain'... #618
Failed to build application: 'WindowInfoX11' is not a type identifier #616
Sudo issue[closed] #615
buildozer-vm-2 installed from scratch ABENDS #611
ASCII decode problem #608
error: could not delete 'build/lib.linux-x86_64-2.7/buildozer/targets/android.py': Permission denied #607
APK Build Failing with Python 3.6 #605
IOError: [Errno 2] No such file or directory: u'/home/kivy/buildozer/.buildozer/android/platform/build/... #603
Feature Request: Dockerfile or image in dockerhub #589
Buildozer debug error. #545
IOERROR invalid directory #599
Buidozer 0.33 AttributeError: 'module' object has no attribute 'directory' #598
Issu with buildozer packing #596
Gradle: path may not be null or empty string. path='null' #595
ERROR: Trying to release a package that starts with org.test; what can I do? #593
App crash with python3 #590
Problem running buildozer android debug first time #586
buildozer download some content failed #585
complie platform failed #580
Module OS - buildozer.spec #579
Buildozer doesn't compile app with cryptography requirement #578
Buildozer x psycopg2 #575
Problem with Android API 23 #573
App crashing on startup- ImportError: dlopen failed: _imaging.so is 64-bit #568
Buildozer issue with latest Xcode/macOS #566
Requests SSL error #565
buildozer failed for Broken toolchain when building numpy with python.host #564
Encountered a bad program behavior #563
error at using pycypto in the requirements #558
Websocket error: SSL not available. #552
"crystax_python does not exist" with python3crystax #551
App crashes after build #549
Installing CyLP on windows #548
Service notification launch intent causes app crash #547
Application crashes on start #546
New android target is unable to produce a python 4 android service #543
Buildozer Build Error #538
# Aidl not found, please install it. #537
Error compiling Cython file on Ubuntu 14.0.4 with python 2.7 and 3.4/5 #536
Failed compilation on ubuntu with python 2.7 configure: error: C compiler cannot create executables #535
Remove app permissions added by default #534
Buildozer error while packaging #531
Buildozer failing to pack .apk #530
toolchain fails to recognize option --sdk #524
# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/abhipso/thembapp/.buildozer/android/platform/build #521
apk way too large - 800mb #520
[features] Snapcraft implementation #514
Possibility of building in kivy virtual machine all locally #513
Python3(crystax ndk) builds broken #511
build fails in virtualenv #509
password for the virtual machine? #507
Failed to build APK with python 3.6 : [sh.CommandNotFound: python3.5] #504
Don't Unpacking opencv for armeabi-v7a #503
Fails to package app on OSX Sierra 10.12.4 (hdiutil: attach failed - image not recognized keka) #494
File missing building release APK #469
Building APK using Buildozer/Kivy #459
buildozer failed to build apk: subprocess.CalledProcessError: Command '['ant', 'debug']' returned non-zero exit status 1 #373
AttributeError: 'Context' object has no attribute 'hostpython' in recipe #361
Cant compile apk with sqlite3 (using python3 crystax) #359
Installation of python for android is missing dependencies #501
Break buildozer if the user try to release a version with "org.test" as a domain #500
Migrate p4a options to its own subkey #499
Use stable branch from python-for-android #498
Migrate android to android_new, and add android_old #497
sh.CommandNotFound: cmake #496
Need Help Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 4579 (SDLThread) #495
Buildozer APK Cannot LAUNCH #493
Buildozer Error #492
android_new target hardcodes python2 support for p4a #491
android.arch ignored #488
fail to install distribute #486
sh.py raise a exception and fail to build #485
some functionality lost when debugged with android_new command #481
Problem when deploy to android device #480
dlopen failed: python2.7/site-packages/grpc/_cython/cygrpc.so not 32-bit: 2 #479
Cannot build APK with python3crystax and flask - conflicting dependencies #477
Buildozer can't download NDK #474
websocket-client "SSL not available." #473
Using Cython with Kivy-iOS and Buildozer #472
android.requirements does not merge with app.requirements #471
buildozer fails to find Android SDK #468
Crash of APK on start #467
App not launching #461
sqlite3 not working with android_new #457
how to set path for p4a #454
TypeError: write() argument 1 must be unicode, not str #452
New toolchain - lxml included but not able to import #451
sqlite3 with python2.7 and buildozer 0.33dev and new toolchain not working #450
Update the Virtual Machine @ https://kivy.org/\#download #449
“No module named setuptools” after installing setuptools #444
how to add --arch=armeabi-v7a to buildozer spec #443
buildozer android debug fails with jinja2.exceptions.TemplateNotFound: build.xml #442
buildozer.spec - requirements - kivy == master #440
Buildozer can't find zlib #437
Expose kivy download source? #435
compiling crash #431
Buildozer unable to make apk #430
Crash APK on start #429
More like a noob question #428
keka failed to download (OS X El Capitan) #427
Buildozer fails with pure python library pint #425
Invalid argument to arm-linux-androideabi-gcc #424
dlopen failed: _clock.so is 64-bit instead of 32-bit #423
how to solve the build error for "java"? #421
Problems in patching files during building for android_new #416
Buildozer doesn't work with multiple first-class directories #415
Buildozer suddenly not working, Linux, Python 2.7 (build.xml: Failed to find version-tag string) #414
Buildozer not finding aidl #413
buildozer android created apk fails if application source kept in multiple files #411
Python 3 unicode print () / copy to clipboard crashes app on Android #404
checking whether the C compiler works... no #402
configure: error: C compiler cannot create executables #395
ConfigParser.NoOptionError: No option 'p4a.local_recipes' in section: 'app' (android_new) #394
Google has changed the type of archive the new NDK #393
Why does buildozer build and pull python for android from old_toolchain branch ? #389
buildozer android_new does not show the presplash #387
Error when using buildozer android_new with python3crystax #386
Command failed: tar xzf android-sdk_r20-linux.tgz #383
When will you add requests lib to recipes? #382
Presplash does not work with "android_new" as target. #380
Build for Android is Inconsistent with the Linux Version #378
[question] What are the supported OS ? #369
AttributeError: 'AnsiCodes' object has no attribute 'LIGHTBLUE_EX' #366
splash image not hide after kivy loaded #364
app always crash in android #360
Plyer not available in buildozer android_new #358
Runs empty directory instead of binary (android_new) #357
App built with buildozer does not open on android #356
Error when running buildozer android_new debug #354
ios list_identities returns no identities #353
buildozer not working #350
error: Cython does not appear to be installed #349
AttributeError: 'Context' object has no attribute 'hostpython' #347
osx packaging results in venv error #345
Requirement example requirements = kivy,requests fails #344
Unavailability of important packages #343
no way to change bootstrap #341
Apk built with buildozer and multiple python file crashes #331
Please upgrade the documentation #255
Buildozer doesn't recognize "profile" option anymore #254
Try to build with caldav requirement fails #248
Trouble building for older android versions #240
removing old apk file seems to fail before installing the new one #238
Build fails due to python-distribute.org being down #200
I am struggling with building an apk #153
fresh android sdk install requires sdk update #151
FYI - Ubuntu 14.04 Necessary Java Path Adjustment #141
Cannot compile iri2uri.py in httplib2 #135
can't add django to requirement #130
add an ssh target #1
When is the support coming to build windows .exe using buildozer? #333
outdated openssl #332
ios deployment fails (buildozer --verbose ios debug deploy) #330
Can't add uuid pytz datetime time dbf to requirements #329
AttributeError: 'NoneType' object has no attribute 'startswith' #326
android.p4a_dir use old toolchain? #325
Switch from pygame to sdl2 easily #313
IOError: [Errno 2] No such file or directory: "/home/andrew/CODE/Python/kivy-test-android/.buildozer/android/platform/python-for-android/dist/helloworld/bin/HelloWorld-'1.0'-debug.apk" #312
Marshmallow sdk not found #310
Install Buildozer: Finished processing dependencies for buildozer==0.32dev #304
Bump default min SDK to 13: Fix crash on orientation change bug #302
Disable "Open with file manager" when USB cable is connected in virtual machine #299
Check presence of main.py during build time #298
Py3: 'Buildozer' object has no attribute 'critical' #297
The splash screen isn't automatically resized #292
buildozer don't work if whitespace in path #287
buildozer help fail #285
Buildozer.spec 's title of your application can not be a Chinese character #284
How to build apk with a cython file #283
pip no longer has a --download-cache option, so downloading requirements has stopped working #279
Cython2 not recognized in Fedora23 ? #278
Buildozer VIrtual Machine Error: /jni/application/src/': Not a directory #277
buildozer android debug deploy run hangs #275
Is it possible to move the .buildozer folder somewhere else? #273
configure: error: C compiler cannot create executables #272
buildozer deploy error #271
Cannot set Android API version #268
Support python3 #265
App crash when changing orientation #264
Broken update command #261
error while deploying android #257
jnius/jnius.c: No such file or directory #251
Implement source.include_patterns #245
Buildozer Python 3 Compatability Issues #175
Logo aspect ratio problem #263
Is there a way to seperate building environment and building apk? #259
buildozer must be ran with sudo #258
Invalid NDK platform #253
Q:compile error #252
Please update SDK url #249
java.lang.NoSuchMethodException: isSupportChangeBadgeByCallMethod [] #243
AttributeError: 'NoneType' object has no attribute 'group' #242
Error: Flag '-a' is not valid for 'list sdk'. #241
Provide custom path for android SDK to buildozer #237
kivy examples seem to need __version__ #236
pyliblo #235
subprocess.CalledProcessError: Command '['ant', 'debug']' returned non-zero exit status 1 #234
Cannot use numpy with buildozer #232
Problem downloading ndk version > r9d #229
Error likely to missing 32 bit packages #228
Bulldozer can't download new ndks 10x... #227
Error while trying to install Buildozer in Windows 10 #225
Making reverse engineering .apk harder #224
Buildozer wont compile libraries with cython 0.23 or 0.22 #223
These are the errors I get when I try to package the file... #222
Buildozer installs platform despite setting ndk & sdk paths #220
Can't find config.ini buildozer solution #219
Ant error: SDK does not have any Build Tools installed #218
Buildozer fails because of build-tools package name #217
ImportError: No module named pygments #216
buildozer android camera #215
Error when first time Building apk #212
cannot import name spawnu #211
Buildozer recompiles p4a when a custom for of plyer is used. #210
Add android.ant_path to default.spec #209
Problems with adding wav, ogg and ttf files #208
cython issue with kivy and buildozer development versions #207
subprocess.CalledProcessError: Command '['ant', 'debug']' returned non-zero exit status 1 #205
Buildozer isn't building if I try to include some requirements #195
Cant build APK for android.api = 10 #193
Doc error: "buildozer clean" does not exist #189
Can't install pillow requirement #188
#error from Cython compilation #150
Space in app path path name causes ./distribute -m kivy to fail #13
Changed p4a download to pull old_toolchain branch #233 (inclement )
Added support for downloading and handling android ndk r10 versions. Fixes #229 and #227 #230 (dvenkatsagar )
make _read_version_subdir return parse('0') instead of [0], otherwise… #206 (denys-duchier )
version problem with split #201
subprocess.CalledProcessError: Command '['ant', 'debug']' returned non-zero exit status 1 #183
Buildozer get error during packaging for android #182
Bug with android.p4a_whitelist in buildozer.spec file. #180
You need an option for git https #178
Buildozer .apk file creation issue #177
sudo buildozer Fails #174
Buildozer iOS Apps Won't Open #171
always show python-for-android output on failure #170
Buildozer tries to install android sdk every time you try to compile an android application. #169
automatic installation of android sdk fails due to unicode parsing error #166
Move from fruitstrap to ios-deploy #107
buildozer ios debug build fails on MacOS Mavericks #83
gdb doesn't work anymore with Xcode 5 #54
buildozer ios debug deploy fails on running fruitstrap at 70% with error AMDeviceInstallApplication failed #9
ensure whitelist always has a list #172 (kived )
removed some indentation in example info, added to actual comments inste... #168 (chozabu )
buildozer can't download python libs due to ssl certificate check fail #164
Buildozer feature redirect .buildozer folder outside your project #162
Buildozer fails on clean build #161
pjnius build fails on Arch Linux when requiring netifaces #159
error compiling with buildozer #158
C compiler cannot create executables #152
Requirements needing commas instead of spaces (like p4a) is non-obvious #147
fix build error and allow redirecting build folder #163 (olymk2 )
Remove duplicated checkbin(). #160 (attakei )
added note about buildozer not having anything to do with buildozer.io #157 (nickyspag )
Fixed logic to compare with “non installed” with “minor version upped" #156 (attakei )
Set "UTF-8" to java file.encoding for android update command explicitly #155 (attakei )
added example to default.spec requirements showing comma seperation #148 (chozabu )
install\_android\_packages is too slow to run in china. #143
Buildozer setup.py fails with Module ImportError #140
buildozer downloads Android SDK 20 during every call to deploy app #137
Buildozerv0.15: lib/pexpect.py is not Python 3 compatable #131
Keep on gettting version error #129
arm-linux-androideabi-gcc: fatal error: no input files #127
I am new to python and buildozer, using buildozer to compile my first android app #125
I am new to python and buildozer, using buildozer to compile my first android app, #124
Command Failed #122
Exception: Cython cythonnot found #120
Enable use for packaging OSX apps #114
Errors on 'buildozer android debug deploy run' #113
Fail to download Android SDK in Linux and Python 3.3 #110
Unable to add "requirements" buildozer.spec #109
TypeError: 'encoding' is an invalid keyword argument for this function #106
Custom activity #33
Buildozer fails to install on Windows #27
support blacklist changes in python-for-android #17
Do not set permissions (ug+x) if already set #115
UTF-8 Encoding Error, __init.py__ 0.15-dev #108
incorrect minapi android manifest value #93
libpython wait4 linker error #92
fcntl import error #88
No Python 3 Support #84
Uncaught exception on missing cython #80
Where are custom python-for-android recipes meant to go? #76
Error compiling Cython file: #73
Zlib still giving issues on Ubuntu 13.04 #72
DBAccessError permission denied in app #71
Selective update of depencencies #70
32-bit SDK installed on 64-bit system #69
wrong version regex #67
sdk update fails on license question #66
x86 and armeabi-v7 libs #63
Missing dependenced during compilation #59
Bad magic number when reading generated state.db file in VMware Ubuntu guest #42
x86 apk support on buildozer #11
Text provider #105
No installation instructions #104
Android SDK installation not working anymore #101
Buildozer almost completes and then errors saying file exists #99
Java compilernot found #95
Absolute path problem #91
Error when running: buildozer --verbose android debug deploy run #89
buildozer.spec passing requirements #87
debugging "Command failed" is tedious #86
No module named sqlite3 #56
Garden packages are unsupported #39
python-for-android repo is hard-coded in buildozer #37
virtualenv-2.7 hardcoded #22
Buildozer error no build.py #21
Command failed: ./distribute.sh -m "kivy" error message #77
Error importing _scproxy #68
Package names beginning with a number cause an obscure crash with an unclear error message #64
failing to compile sample android app with buildozer #61
Default android.sdk setting causes sensor rotate on Android to fail #32
Add wakelock to options #31
Updated Android NDK default version to 9c #82 (brousch )
Add 'bin' to suggested default directory excludes #78 (joseph-jnl )
Clarified wording in README #75 (inclement )
Check for package name starting with number #65 (inclement )
[FIX] Detect 32/64 bit on Windows, to download Android NDK #62 (alanjds )
Added --private and --dir Android storage option #58 (brousch )
Added a 'serve' command to serve bin/ over SimpleHTTPServer #49 (brousch )
_patch_application_sources breaks from __future__ imports #35
unresolved domain: pygame.org #34
Builds fail on Ubuntu 13.04 with zlib.h missing #18
"buildozer android update" fails with an error about android.branch #12
Problem Ubuntu compilation on network drive #10
[app] "android.permission" contain an unknown permission #6
buildozer on ios fails at: Command failed: tools/build-all.sh #5
Automatically installing Android SDK fails in file_rename called from _install_android_sdk #4
buildozer does not support ~ in android.sdk_path #3
Popularity
Downloads, last 7 days 23.8K-3%
Stars, last 7 days –
Direct dependents 6
All dependents 6 51
Fair
Maintenance, out of 100
Recent release
last release 200 days ago
Commit activity
5/26 weeks with commits
Release cadence
1 releases in 12 months
Issues & PRs handled
84% closed in the past year
Contributor spread
13 authors in last 100 commits
Releases
Latest 1.6.0
Released May 12, 2026
Releases, 12 months 1
First release Dec 19, 2012 Compatibility
Requires Python >=3.8
Tested on 3.8 · 3.9 · 3.10 · 3.11 · 3.12 · 3.13 · 3.14
License MIT (Permissive) Works well withUse together with buildozer: extensions, drivers, servers and companion tools.
Kivy Pythie’s Index: 76An open-source Python framework for developing GUI apps that work cross-platform, including desktop, mobile and embedded platforms. 243.5K downloads/mo