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.