The kivy_buildozer_installer.sh is automating my actions I have shown in this video.
The complete list of Buildozer dependencies is:
- build-essential
- ccache
- git
- libncurses5:i386
- libstdc++6:i386
- libgtk2.0-0:i386
- libpangox-1.0-0:i386
- libpangoxft-1.0-0:i386
- libidn11:i386
- python2.7
- python2.7-dev
- openjdk-8-jdk
- unzip
- zlib1g-dev
- zlib1g:i386
- libltdl-dev
- libffi-dev
- libssl-dev
- libtool
- pkgconf
- autoconf
- autotools-dev
- automake
- cmake
The kivy-buildozer-installer.sh installs Kivy framework and Buildozer for Python 3 with all its dependecies.
The script was successfully tested with Xubuntu 18.04 and Lubuntu 18.04. The test result was a successfully compiled .apk file for Android 6.0 and 7.0.
-
Download the kivy-buildozer-installer.sh any way you like. E.g.
curl -LJO https://raw.githubusercontent.com/zaemiel/kivy-buildozer-installer/master/kivy-buildozer-installer.sh
-
Add execution permissions:
chmod +x kivy-buildozer-installer.sh
-
Run the script:
sudo ./kivy-buildozer-installer.sh
WARNING With manual installation of the Buildozer via cloning its repository, pay attention to clone the Buildozer repository to any directory except HOME directory. Otherwise the error "AttributeError 'Namespace' object has no attribute 'ignore-setup_py'" will occur probably due importing modules conflicts.
The current virtual machine allow you to have a ready to use VM for building Android application.
Lubuntu 18.04 Virtual machine (Unziped size is about 13 Gb):
Login: kivy
Password: kivy
To free a disk space you can delete test app folder, before you start a new buildozer compilation
-
Create a folder on your host machine.
-
In the Virtualbox menu: 'Devices' -> 'Shared folders' -> 'Shared folders settings...' click on the small button at the right side 'Adds new shared folder'
-
Specify the folder path on your host machine
-
Check 'Auto-mount' and 'Make permanent' boxes.
-
Power off your guest machine
-
Start the guest machine again and shared folder should appear on the Desktop.
-
Done
buildozer android update