How to run or deploy old code into Kivy and Buildozer?

89 views
Skip to first unread message

Ziga

unread,
Sep 29, 2022, 8:01:34 PM9/29/22
to kivy-...@googlegroups.com
How to run or deploy old code into Kivy and Buildozer?


I has a project from late the since 2020 year at recent days.

This not is a question, but is what happened with my project,
to help anyone that face anything that look like this.

This is how i suceed to reborn my application.
I reached various attempts to turn my project into an apk again.
So, i tried and tried again, and now i have my project working.

i faced the error bellow:

ModuleNotFoundError: No module named 'kivy.graphics.instructions'

To solve it, i must to change the kivy version
from 2.0.0rc4 to this: kivy==2.1.0

For The kivymd i keept the kivymd==0.104.2

and the respectives dependencies for my project at buildozer.spec

My probe phone has api 21, the last supported,
so, i keep min api 21 and target api to 30

I changed the buildozer version too,
with this command:
pip3 install buildozer==1.3.0
here in the conda environment, and touch a care to buildozer dependencies
in this file: https://buildozer.readthedocs.io/_/downloads/en/1.3.0/pdf/

that is:
sudo apt update
sudo apt install -y git zip unzip openjdk-13-jdk python3-pip autoconf
libtool pkg-config zlib1g-dev libncurses5-dev libncursesw5-dev libtinfo5
cmake libffi-dev libssl-dev
pip3 install --user --upgrade Cython==0.29.19 virtualenv # the --user
should be removed if you do this in a venv
# add the following line at the end of your ~/.bashrc file
export PATH=$PATH:~/.local/bin

After i found the openjdk compatible, i very happy could to debug and
run my appĺication on phone.

Robert

unread,
Sep 29, 2022, 8:48:13 PM9/29/22
to Kivy users support

And current buildozer is 1.4.0
current Kivy is 2.1.0
current KivyMD is 1.0.2  (but for KivyMD but you may have to make app changes to stay current)

Also you can set the api current too.
android.api = 33

Best not to mess with things like minapi.
Reply all
Reply to author
Forward
0 new messages