Convert code written in kivy to APK file we have to write following code in Google colaboratory .

Build application file in kivy:

To begin with you have to acknowledge your file in Google colaboratory and rename file as main.py

 

! pip install buildozer !pip install cython==0.29.19 !sudo 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 !sudo apt-get install -y \ libgstreamer1.0 \ gstreamer1.0-plugins-base \ gstreamer1.0-plugins-good !sudo apt-get install build-essential libsqlite3-dev sqlite3 bzip2 libbz2-dev zlib1g-dev libssl-dev openssl libgdbm-dev libgdbm-compat-dev liblzma-dev libreadline-dev libncursesw5-dev libffi-dev uuid-dev libffi6 !sudo apt-get install libffi-dev !buildozer init # a .spec file will be generated !buildozer -v android debug # an .apk file will be generated in bin folder. !buildozer android clean

Finally we can install and run this application on mobile device.

Â

By SC

Leave a Reply

Your email address will not be published. Required fields are marked *