Converting Python Kivy to Android APK using Google Colab

preview_player
Показать описание
#kivy android app development #PyhtonProgramming #Kivymd #Mobileapp
In this lecture we will learn to create .apk file of an Kivy based calculator application

The Google Colab Way!
The conversion requires a Linux environment and Google provides it for free! If you belong to Data Science or Deep learning background then you must be aware of this platform.

It provides you a virtual machine with 75GB space, 12GB RAM, and around 12GB GPU power! You can use this platform to perform model training, checking logs, or running Python codes.

As this is a Linux based system, now the only thing required is to install the dependencies and initiate the process.
Link to access the Google colab notebook:
You can directly use my colab notebook where you just need to run all the cells, that’s it!

a) !pip install buildozer
b) !pip install cython==0.29.19
c) !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
d) !sudo apt-get install -y \
libgstreamer1.0 \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good

e) !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

f) !sudo apt-get install libffi-dev

g) !buildozer init

h) !buildozer -v android debug

i) !buildozer android clean

Before running the cells, make sure to upload your app code to the colab notebook and after running the bulldozer init command, make sure to edit the specs file generated and nothing else!
This is the easiest and most convenient way to build apps without the need for an actual system!
Рекомендации по теме
Комментарии
Автор

Our bro saved my life as a mobile programmer, another subscriber

jercikabeatriz
Автор

I was thinking of not using kivy mainly because of how people complain about turning it to a mobile app (saw an article of a guy who tried for 4 days and gave up). Going to give it a try after seeing this vid. I'm subscribing.

woetotheconquered
Автор

THANK YOU oh my goodness the forums try to make it sound impossible .. it's easier than blinking thanks to you! CHEERS!!

teanza
Автор

I Appreciate you're work ..but that would also be good if you tried and installed it on you android device

jhonbhai
Автор

Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2

eerror lastpart

goodone
Автор

you're the genius. thanks very much. very cool

biruktilhun
Автор

Excellent video bro very good god bless you

arexperiment
Автор

You're a genius mate! I wonder how do you know such things, could you give me any hint please? (like "by mean of univerity" for example)

SmHeart
Автор

Getting these errors
1.lld not found, linking without it. Consider installing lld if linker errors occur
2. clang: error: no such file or directory: 'jnius/jnius.c'
clang: error: no input files
error: command failed with exit status 1
3.Buildozer failed to execute the last command

poonammanjare
Автор

I uploaded my program file. But there is nothing in bin folder. Why?

minkoungkhant
Автор

Sir ye mobile phone mein hone ke liye kuch jyada hi time le raha hain.
Buildozer init wala toh .spec bana hi nahi raha.

programmer
Автор

What about the kv file that cointais all the ui instructions?

alexdominguess
Автор

Now I have a DOUBT.

If I share that apk file to another PC, will it fucntion the same way as it does in my pc?

santoshchauhan
Автор

Thank you ! I just got the apk .. hope it works on my mobile 🤣

SumitGupta-yslb
Автор

from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'

bhavyamverma
Автор

Buildozer failed to execute the last command.
When using buildozer in linux.
Is there any solution for this.

diaya
Автор

Seems to good to be true, dhanyavaad!

francescoromano
Автор

My apk file of my app is not opening. When I try to open, it is coming out of the app. May I know the reason?

superboysam
Автор

Line 5 gives me an error:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libffi6

Any advice how to solve this?

kaskilelr
Автор

sir, my app include speech recognition and pyaudio. How can i install it when convert to apk. Thanks sir !!!

minhlongnguyen