Do job with virtual machine
Installation in virtualenv
https://kivy.org/doc/stable-1.11.0/installation/installation-linux-venvs.html
apt-get install -y \
python3-pip \
build-essential \
git \
python3 \
python3-dev \
ffmpeg \
libsdl2-dev \
libsdl2-image-dev \
libsdl2-mixer-dev \
libsdl2-ttf-dev \
libportmidi-dev \
libswscale-dev \
libavformat-dev \
libavcodec-dev \
zlib1g-dev
apt-get install -y \ libgstreamer1.0 \ gstreamer1.0-plugins-base \ gstreamer1.0-plugins-good
python3 -m venv /path/to/new/virtual/environment
./path/to/new/virtual/environment/bin/activate
pip3 install wheel
pip install Cython==0.29.9
pip install kivy==1.11.0
Download example from here: https://kivy.org/doc/stable/examples/gallery.html
Install Java
apt-get install openjdk-11-jdk
Create Android Package
https://kivy.org/doc/stable/guide/packaging-android.html#packaging-android
git clone https://github.com/kivy/buildozer.git
cd buildozer
python3 setup.py install
Go inside your project folder and run
buildozer init
Edit created buildozer.spec file
Build
buildozer android debug deploy run
- Buildozer downloads some zip files and try to use them ad folders giving errors
- Buidozer downloads python itself, I added a symbolic link in .buildozer inside the project to my venv python
- Some errors are occurred and I done the command manually and then run again the build