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.
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
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?
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 '/root/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit status 1 3.Buildozer failed to execute the last command
I use pymysql and it dosn't work because I don't really know how to include it in my .spec file and also, I don't know wich line I should uncomment etc...
@@romainplantureux2125 well open the spec file go somewhere 42 to 48 line u will find requirements variable just enter the module make sure u specify the version of module eg kivy==2.0.0 and also give commas after each module except for last module. And then hot ctr-save ur done
I got the apk file generated but when I installed it in my phone the app crash closes..it shows loading and then closes.. I'm using kivy, kivymd and pyttsx3 packages.. Do you know why this would happen ?
Can you please convert mine please print("WELCOME TO THE CALCULATOR!") name=input("WHAT IS YOUR NAME :") SHAHZAIB="SHAHZAIB" Shahzaib="Shahzaib" shahzaib="shahzaib" if name == SHAHZAIB: print("WELCOME SHAHZAIB KING.WE WERE WAITING FOR YOU KING :)") elif name == Shahzaib: print("WELCOME SHAHZAIB KING.WE WERE WAITING FOR THE YOU KING :)") elif name == shahzaib: print("WELCOME SHAHZAIB KING.WE WERE WAITING FOR THE YOU KING :)") else: print("HELLO",name,"DONKEY") fine=input("HOW ARE YOU :") if fine == "FINE": print("GOOD,I AM ALSO FINE") elif fine == "NOT FINE": print("OH,DON'T WORRY EVERYTHING WILL BE FINE") print("LETS START CALCULATING") number1=float(input("WRITE YOUR FIRST NUMBER :")) operator=input("ENTER AN OPERATOR (+,*,-,/) :") number2=float(input("WRITE YOUR SECOND NUMBER :")) if operator=="+": result=number1+ number2 print(f"{number1} + {number2} = {result}") elif operator== "-" : result=number1-number2 print(f"{number1} - {number2} = {result}") elif operator== "*" : result=number1*number2 print(f"{number1} * {number2} = {result}") elif operator== "/" : result=number1 / number2 print(f"{number1} / {number2} = {result}")
Sir I have a python code for operating smart bulb with hue bridge. I want to convert that python code to apk so that I can install it as app for my phone. Plz help
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 What to do with this error? pls
Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package libffi6 after type 5th command, this is giving error, what should i do ?
Can you please convert mine print("WELCOME TO THE CALCULATOR!") name=input("WHAT IS YOUR NAME :") SHAHZAIB="SHAHZAIB" Shahzaib="Shahzaib" shahzaib="shahzaib" if name == SHAHZAIB: print("WELCOME SHAHZAIB KING.WE WERE WAITING FOR YOU KING :)") elif name == Shahzaib: print("WELCOME SHAHZAIB KING.WE WERE WAITING FOR THE YOU KING :)") elif name == shahzaib: print("WELCOME SHAHZAIB KING.WE WERE WAITING FOR THE YOU KING :)") else: print("HELLO",name,"DONKEY") fine=input("HOW ARE YOU :") if fine == "FINE": print("GOOD,I AM ALSO FINE") elif fine == "NOT FINE": print("OH,DON'T WORRY EVERYTHING WILL BE FINE") print("LETS START CALCULATING") number1=float(input("WRITE YOUR FIRST NUMBER :")) operator=input("ENTER AN OPERATOR (+,*,-,/) :") number2=float(input("WRITE YOUR SECOND NUMBER :")) if operator=="+": result=number1+ number2 print(f"{number1} + {number2} = {result}") elif operator== "-" : result=number1-number2 print(f"{number1} - {number2} = {result}") elif operator== "*" : result=number1*number2 print(f"{number1} * {number2} = {result}") elif operator== "/" : result=number1 / number2 print(f"{number1} / {number2} = {result}")
Please help! I managed to create an apk (kivy/python) using Coollaboratory and it works, but the Android device cannot install subsequent versions created in another session to the previous one, even if nothing changes in the code. APK versions are compatible only if created within the same session. How can I organize the apk update on the device?
This actually works , but sometimes i got problems , something like : [WARNNING ] .lld not found, linking without it. Consider installing lld if linker errors occur. does anyone know how to fix it?
@@varunbharadwaj2091 sometimes i come across with the same , but when i try again with another account (login google chrome with other email), it works great on the android and won't crash :)
Hello, this worked but my app uses modules other than Kivy, and when converted to APK, the file cannot import these modules. How do I fix this? Thanks in advance.
Open the builder.spec file, there is a module section inside. If you write the module you use and the modules used by your module in that part, it will work.
help me, This buildozer version requires a python-for-android version with AAB (Android App Bundle) support. Please update your pinned version accordingly.
I wrote code for an application, but it did not work for me. There are no errors in the python file and it works fine on the desktop, but when converting it to colab it does not work. Can you help me please!!
Hi! Thanks for your video. Somebody wrote this and I have the same problem: 'I got the generated apk file but when I installed it on my phone, the app crashed and closed..it shows loading and then closes.. ' Could you please help me? I tried it with several codes but this happened in all cases.
@@francescoromano5863 Hi! I just remain at using Java. :-) I gave it up with Python. Python is not improved for this goal / purpose. I accepted this fact. :-)
# 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
unable to build apk. facing an error on this command (!buildozer -v android debug) Error : configure:8578: error: possibly undefined macro: AC_PROG_LIBTOOL autoreconf: error: /usr/bin/autoconf failed with exit status: 1. I installed libtool, still its not working. Can you help me to resolve this issue?
nop kv files are optional, you can use python syntax to define your layout or use it in load.string method. HOWEVER, .kv file is the best programming practice
Thank You Very Much It WWWOOOORRKKKEEEDDDDDDDDDDD!!!!!!!! Met a few errors along the way on d) but nothing a (!sudo apt-get update) couldnt fix) Didnt even know this was possible!! Thank You Very Much I Subscribed!!!!!
@@rolando1259 exactly. "Hard to distribute" is the term I'm looking for. Windows and Linux's terminals have packages that can compile Python scripts into an .apk in like 5 lines of code. Hell, you can even develop iOS applications there with VirtualBox. Meanwhile, Macs can only make iOS apps and as far as I know, there is no Linux terminal support or Virtual Machine support (natively) for Mac, and even then, you have to get a valid license, unlike when compiling .apk files, where the ToS/TaC pops up and you simply click "Accept", free of charge. Apple sucks generally.
hellpp meee, lthe literal e I get this: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libffi6 When I run the code, I only get those 4 lines
Our bro saved my life as a mobile programmer, another subscriber
He'll
Hello bro I need a help
THANK YOU oh my goodness the forums try to make it sound impossible .. it's easier than blinking thanks to you! CHEERS!!
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.
I Appreciate you're work ..but that would also be good if you tried and installed it on you android device
Brilliant Video. Very very helpfull!
you're the genius. thanks very much. very cool
You are the best. Thnaks👍👍👍😊
Thank you ☺️ and welcome
Excellent video bro very good god bless you
It works!! Thank you so much!!
Sir ye mobile phone mein hone ke liye kuch jyada hi time le raha hain.
Buildozer init wala toh .spec bana hi nahi raha.
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
How did you get it resolved?
showing me the samee
I had the same error.
Same here
Does anyone have a solution for this
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)
loda le
Buildozer failed to execute the last command.
When using buildozer in linux.
Is there any solution for this.
Did you find the solution now?
Did you fine the problem
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?
What about the kv file that cointais all the ui instructions?
i just added the .kv file aswell and it worked
@@bjwilliam5768 can u help me in this case
Tq so so so much dude..🤗🤟
Hey i can't type anything on the !buildozer init part i can't type y I'm on mobile please help
I uploaded my program file. But there is nothing in bin folder. Why?
what if we have images folder in our app , how do we add that in colab?
Should we activate dev mode on mobile phone to run the app?
are we save here sir, why all that file for just small app?
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?
where do you put the directory or path to your python script
sir, my app include speech recognition and pyaudio. How can i install it when convert to apk. Thanks sir !!!
Thanks so much Sir.
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
!sudo apt-get install libffi-dev
run that in a cell and it should fix it
Hi what if we have many files in our application. Do we upload them to google collab individually and does it work or is there some other way?
Did you found the answer?
@@transhuman4344 No
Looking for same answer. I read somewhere to create folder and save all the files there, but stil not working
Apk file not showing in bin folder after running the code... please help
@Atual Gaurav
Did u get the apk file?
@@garlapatisriharshitha5106 No, its showing error 'Buildozer failed to execute the last command'
I am having the same issue
@@creativesfun same error showing have you got result now? please let me know
Same problem also
Thank you. I will try it
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?
you may call me on my number +91-9891665634 and tell me your issue
Seems to good to be true, dhanyavaad!
Thanks dear ❤️😊
Did you try it
Dude did it work
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 '/root/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit status 1
3.Buildozer failed to execute the last command
Hi thank you for the tuto. Do I need to add something if I use MYSQL in my app ? thank you
I use pymysql and it dosn't work because I don't really know how to include it in my .spec file and also, I don't know wich line I should uncomment etc...
@@romainplantureux2125 well open the spec file go somewhere 42 to 48 line u will find requirements variable just enter the module make sure u specify the version of module eg kivy==2.0.0 and also give commas after each module except for last module. And then hot ctr-save ur done
Did the app run in the mobile device mine just crahes continously
Hello! If I have code with sqlite3, need I add something? Thanks!
I got the apk file generated but when I installed it in my phone the app crash closes..it shows loading and then closes.. I'm using kivy, kivymd and pyttsx3 packages.. Do you know why this would happen ?
do you have any external libraries imported in your program?
did you find a solution?
it's propably a bug in your script
GOOD VIDEO! I LIKE IT. I LOVE YOU
Perfect one. Thanks
I did the same but my program did not sill opening.
UnboundLocalError: local variable 'toolchain_version' referenced before assignment last etape
Thanks man, you save me ;)
Can you please convert mine please
print("WELCOME TO THE CALCULATOR!")
name=input("WHAT IS YOUR NAME :")
SHAHZAIB="SHAHZAIB"
Shahzaib="Shahzaib"
shahzaib="shahzaib"
if name == SHAHZAIB:
print("WELCOME SHAHZAIB KING.WE WERE WAITING FOR YOU KING :)")
elif name == Shahzaib:
print("WELCOME SHAHZAIB KING.WE WERE WAITING FOR THE YOU KING :)")
elif name == shahzaib:
print("WELCOME SHAHZAIB KING.WE WERE WAITING FOR THE YOU KING :)")
else:
print("HELLO",name,"DONKEY")
fine=input("HOW ARE YOU :")
if fine == "FINE":
print("GOOD,I AM ALSO FINE")
elif fine == "NOT FINE":
print("OH,DON'T WORRY EVERYTHING WILL BE FINE")
print("LETS START CALCULATING")
number1=float(input("WRITE YOUR FIRST NUMBER :"))
operator=input("ENTER AN OPERATOR (+,*,-,/) :")
number2=float(input("WRITE YOUR SECOND NUMBER :"))
if operator=="+":
result=number1+ number2
print(f"{number1} + {number2} = {result}")
elif operator== "-" :
result=number1-number2
print(f"{number1} - {number2} = {result}")
elif operator== "*" :
result=number1*number2
print(f"{number1} * {number2} = {result}")
elif operator== "/" :
result=number1 / number2
print(f"{number1} / {number2} = {result}")
apk is not opening in phone
Sir I have a python code for operating smart bulb with hue bridge. I want to convert that python code to apk so that I can install it as app for my phone. Plz help
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
What to do with this error? pls
You may contact me on my WhatsApp 9891665634
sir please tell me the solution of this programmme it too happened with me
Hi you may contact me on my WhatsApp 9891665634
Hi you may contact me on my WhatsApp 9891665634
@@auroragaming4991
Got a solution for the error? Is should be something in general, answering everyone seperatly seems illogical.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libffi6
after type 5th command, this is giving error, what should i do ?
You may contact me on my WhatsApp 9891665634
@@gauravkumarjain , okay... Thanks
@@Chetan_fireworks lol
@@gauravkumarjain lol
The same problem
mr. gaurav .......I love your tutorial. i have a problem please can you help me.
Thanku bro.... 🔥🔥🔥🔥🔥👍👍🤗🤗🤗
Can you please convert mine
print("WELCOME TO THE CALCULATOR!")
name=input("WHAT IS YOUR NAME :")
SHAHZAIB="SHAHZAIB"
Shahzaib="Shahzaib"
shahzaib="shahzaib"
if name == SHAHZAIB:
print("WELCOME SHAHZAIB KING.WE WERE WAITING FOR YOU KING :)")
elif name == Shahzaib:
print("WELCOME SHAHZAIB KING.WE WERE WAITING FOR THE YOU KING :)")
elif name == shahzaib:
print("WELCOME SHAHZAIB KING.WE WERE WAITING FOR THE YOU KING :)")
else:
print("HELLO",name,"DONKEY")
fine=input("HOW ARE YOU :")
if fine == "FINE":
print("GOOD,I AM ALSO FINE")
elif fine == "NOT FINE":
print("OH,DON'T WORRY EVERYTHING WILL BE FINE")
print("LETS START CALCULATING")
number1=float(input("WRITE YOUR FIRST NUMBER :"))
operator=input("ENTER AN OPERATOR (+,*,-,/) :")
number2=float(input("WRITE YOUR SECOND NUMBER :"))
if operator=="+":
result=number1+ number2
print(f"{number1} + {number2} = {result}")
elif operator== "-" :
result=number1-number2
print(f"{number1} - {number2} = {result}")
elif operator== "*" :
result=number1*number2
print(f"{number1} * {number2} = {result}")
elif operator== "/" :
result=number1 / number2
print(f"{number1} / {number2} = {result}")
my app didn't run on android but it run on my linux
Please help! I managed to create an apk (kivy/python) using Coollaboratory and it works, but the Android device cannot install subsequent versions created in another session to the previous one, even if nothing changes in the code. APK versions are compatible only if created within the same session. How can I organize the apk update on the device?
You may contact me on my WhatsApp 9891665634 for availing coding classes facility
Thank you ! I just got the apk .. hope it works on my mobile 🤣
did it work??
Did it work on your phone
where is the .buildozer directory?
This actually works , but sometimes i got problems , something like :
[WARNNING ] .lld not found, linking without it. Consider installing lld if linker errors occur.
does anyone know how to fix it?
Same error bro
bro, finally i solve it , i found some other codes you can include it , you can use the follow :
!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
!sudo apt-get update
!sudo apt-get install -y lld
!sudo apt-get install libtool
!sudo apt-get install autoconf
!buildozer init
!buildozer -v android debug
!buildozer android clean
it works for me
@@taherlogbi6285 I did these steps in google colab, i could great an app, but if i open it it's crashing
@@varunbharadwaj2091 sometimes i come across with the same , but when i try again with another account (login google chrome with other email), it works great on the android and won't crash :)
sir can we use deep learning and machine learning models also with colab and convert it to apk
Did you find the answer?
@@ptr9464 yes you can
i) !buildozer android clean, sir what is this used for?
Thank you so much man!
Thank You very much
Sorry, it is not working. The app just crashes when opened. Could you help?
Have u got the answer to this??
@@vijayapathak3186 not in windows. I am trying in ubuntu. Will update here if it works
Sir, it didn't work out. Can we have a personal chat on this?
@@anirudhputsala8276 please include me
@@abhishekthakkar8897 sure, if I get a reply
Hello, this worked but my app uses modules other than Kivy, and when converted to APK, the file cannot import these modules. How do I fix this? Thanks in advance.
Open the builder.spec file, there is a module section inside. If you write the module you use and the modules used by your module in that part, it will work.
You can see what the module is using by typing 'pip show [module name]' in cmd. I hope I have helped.
Esto es en windows ?
the apk is not open
what is the problem ?
help me, This buildozer version requires a python-for-android version with AAB (Android App Bundle) support. Please update your pinned version accordingly.
You may contact me on my WhatsApp 9891665634
I wrote code for an application, but it did not work for me. There are no errors in the python file and it works fine on the desktop, but when converting it to colab it does not work. Can you help me please!!
you may contact me on my cell/whatsapp +91-9891665634
the actual app cannot be open in android phone
Hi! Thanks for your video. Somebody wrote this and I have the same problem: 'I got the generated apk file but when I installed it on my phone, the app crashed and closed..it shows loading and then closes.. ' Could you please help me? I tried it with several codes but this happened in all cases.
crashes on mine too
@@francescoromano5863 Hi! I just remain at using Java. :-) I gave it up with Python. Python is not improved for this goal / purpose. I accepted this fact. :-)
I tried using this but for some reason it is not working. I wrote my program in Python 3.11.4, Kivy 2.2.1 and Kivymd 1.1.1
You may contact me on my WhatsApp
Thank you mate!
Hello bro I need a help
Can you please help me to finish my final year project using kivymd
You may contact me in my WhatsApp 9891665634
E: Unable to locate package libffi6
sir i am getting this above error
can you please help me out?
you may call me on my number +91-9891665634 and tell me your issue
hello sir ..I got the buildozer error while running on the google colab on !buildozer android debug .... please give me the solution for this
You may contact me on my WhatsApp 9891665634
# 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
same problem is occuring for me,how to solve it?
Same problem did you get the solution!??@@sagarraj6988
My apk file is not opening neither in desktop nor in mobile please help
mine too
Sir ...plss send the link for creating calculator
gaurav, I keep getting error.... it says cython not installed/failed
You may contact me on my WhatsApp
unable to build apk. facing an error on this command (!buildozer -v android debug) Error : configure:8578: error: possibly undefined macro: AC_PROG_LIBTOOL
autoreconf: error: /usr/bin/autoconf failed with exit status: 1. I installed libtool, still its not working. Can you help me to resolve this issue?
You may contact me on my WhatsApp number 9891665634
Error: "E: Unable to locate package libffi6"
solution: use libffi8
Thank bro
you don't ned KV file?
nop kv files are optional, you can use python syntax to define your layout or use it in load.string method. HOWEVER, .kv file is the best programming practice
طبق كل الخطوات لكنه لم يعمل معي
YOU DID NOT SHOW THE REUSLT
If i want to develop a new app and convert it to an apk file, is it the first time that i have to download a bulldozer?
Yes , buildozer set the app's requirements etc to run on Mobile
Only I know Calculator is builed by chatgpt 😂😂😂
Thank You Very Much It WWWOOOORRKKKEEEDDDDDDDDDDD!!!!!!!!
Met a few errors along the way on d) but nothing a (!sudo apt-get update) couldnt fix)
Didnt even know this was possible!!
Thank You Very Much I Subscribed!!!!!
Thanks for showing your interest 😊
can i use simple python code and convert into apk
NO
Hello Sir,
Is it possible to make an iOS app from here i.e. Converting Python Kivy to an iOS app using Google Colab?
@@rolando1259 and you need to do it on a Mac too. Now I see why most developers don't like Apple
@@BlyatifulButter Easy to set and develop hard to distribute
@@rolando1259 exactly. "Hard to distribute" is the term I'm looking for. Windows and Linux's terminals have packages that can compile Python scripts into an .apk in like 5 lines of code. Hell, you can even develop iOS applications there with VirtualBox. Meanwhile, Macs can only make iOS apps and as far as I know, there is no Linux terminal support or Virtual Machine support (natively) for Mac, and even then, you have to get a valid license, unlike when compiling .apk files, where the ToS/TaC pops up and you simply click "Accept", free of charge. Apple sucks generally.
Everything i done correctly except I forgot to add file
Your file was a kivy file right?
Nope.. it' a python file
two more commands need to change kivy app into apk.
What is it?
What are the two commands
you may call me on my number +91-9891665634 and tell me your issue
legend
bro itna bada video kaam ki chiz dhundni pad rhi hai faltu chize bta rhe ho shuru me
How to add app logo
please help 🥺
all first Sir
Perfect!
Grazie, peccato non poter creare Apk in locale con chromebook!
ty sir
You're welcome dear ❣️🤗
Is this still valid now?
Yes
Please answer.
My app crashing on Android
You may contact me on my WhatsApp
hellpp meee, lthe literal e I get this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libffi6
When I run the code, I only get those 4 lines
you may contact me on my cell/whatsapp +91-9891665634
Koi hindi bhi bol lo salo
crook !!
May I know why?