Deploying Your Kivy/Python App to Android with Buildozer

Erik Sandberg · 156K views · 2020 · 19:17

Open on YouTube

Python, Ruby & scripting languagesSoftware practice, open source & careerstutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering how to install Buildozer and build a Kivy APK, since it is a complete step-by-step walkthrough from VirtualBox setup to deploying on a phone.

Recommended by 3 people across 3 different months, 2020 to 2022.

What it is

A 19-minute screen-recorded tutorial by Erik Sandberg showing how to package a Hello World Kivy/Python app as an Android APK with Buildozer. It runs an Ubuntu 18.04 VirtualBox image on Windows, since Buildozer does not run natively there, and lists every command in the description.

What people said

Recommends LucioRandy · 2020-10 · Stack Overflow · on “How do I install Buildozer on Ubuntu to create an Android APK of a Kivy App?”

Check out this [this video] video by Erik Sandberg as he explains it really well. Then you will need to go into the bin directory to find your compiled APK. Let me know by adding a comment if this doesn't work.

Recommends Ankit Sangwan · 2021-01 · Stack Overflow · on “As a beginner using Kivy 2.0 what steps do i take to compile my project(app) into play store”

First of all, you have to use buildozer to create your .apk file. Apparently buildozer doesn't work on windows so you have to use a virtual machine to do so. After running a virtual machine (ubuntu) you have to install buildozer and all other requirements. You can check the details on this page [LINK] . It's a long process and you will get a lot of errors while doing so. You can check some youtube tutorials like this [LINK] (you won't need any server just use your virtual machine) or this [this video] . You have to carefully provide requirements in buildozer.spec file. Your app will crash a lot of times. After a lot of efforts, you will finally be able to pack your first apk. Then you can do the

Recommends user15756255 · 2021-07 · Stack Overflow · on “Widgets (ToggleButtons) not showing on android device, works perfectly on pc | Kivy”

I used a virtual machine to use linux, then I cloned the github repository in terminal then used Buildozer to make the apk files, and then I used a cable to transfer the files and open the app on my phone. The tutorial I followed was this one [this video] + a few fixes that I googled.

Cites Heikki · 2021-12 · Stack Overflow · on “Why am I getting error saying "Could not find a version that satisfies the requirement Cython"”

What am I trying to achieve? I am trying to finish tuotorial on making android app with kivy with buildozer running in Ubuntu VirtualBox inside windows 10 (isntructions from this tutorial: [this video] ) and run the app on my mobile device. Where am I having problems? For five times I've tried this I have had this error after running command buildozer android debug deploy run (from inside the project's folder): [LINK] What have I tried to fix this? I installed cython to both my windows 10 (with pip install Cython and pip3 install Cython ) and Ubunu inside VirtualBox. In every instance I got Requirement already satisfied... . I started new VirtualBox enviroment after installing Cython to windows 1

Cites Heikki · 2021-12 · Stack Overflow · on “Why am I getting error saying "Could not find a version that satisfies the requirement Cython"”

I found fix in the comments of the tutorial. sudo apt install libssl-dev rm -rf .buildozer Deploy app again Here is the whole comment by tutorial maker Erik Sanberg: Try sudo apt install libssl-dev and then rm -rf .buildozer in the directory that has your buildozer.spec file. Then you can try deploying it again. It's a bug recently introduced that will be patched up soon I believe. Source: [this video]

Cites Tornike Kharitonishvili · 2022-02 · Stack Overflow · on “buildozer version requires a python-for-android version with AAB (Android App Bundle) support”

how can these problems be solved? I use Ubunto to install the APK, I use a bulldozer. I did the work with reference to the video link [this video] . In the process of working I solved the problem of cython.