Nice tutorial! Just one little thing: in order to make this work, WSL needs to be upgraded from WSL1 to WSL2, otherwise you get 'C compiler cannot create executables' error
@@fullstacklab Hello, thanks for your informative and useful video tutorial. But unfortunately I couldn't make a single APK file using buildozer. I'm not assuming that this tutorial is misleading though. I'm officially giving up and I'm gonna start learning Kotlin to make Android apps.
@@shoxruxsunnatov No worries. Kotlin will be the better choice because you can create native android apps with it. Kivy is only for very basic apps and has a lot of limitations. It's advantage is that it's pretty easy to set up. May I ask, what's the issue? To create an apk successfully with buildozer, it's all about the buildozer .spec file.
The apk is created but it is not running on the mobile. I had to do a few more things to clear all the errors 1 error was the file not found on the url. I found out that if you are behind a proxy it can happen. So connected with a different network and it worked. I got kivy errors those were resolved by installing h5py separately.
This video helped a lot with getting my app up and running, especially the parts where you go back and debug. Thanks a bunch! Another similar (but less helpful) video I found used VirtualBox for their virtual Ubuntu environment, and they didn't have to mess around with adb. Is there a reason you didn't go that route? When I see two different ways to do something it leaves me wondering why choose one over the other. Thanks again!
Hey Mikkel! I'm glad I could help. I was using the virtual machine before but I had a lot of issues with the connection to my phone. Also, the setup with the Ubuntu Subsystem nowadays is way easier and cleaner and it allows you to do all the development on windows. Transferring data from windows to the subsystem and back is no big deal. Cheers
@ 7:38, How would I reference a file in the "data" folder within my main.py file, in other words what file path should i give the python file so it will be able to find it when being run on the android phone?
checking whether the C compiler works... no configure: error: in `/home/xxx/bin/buildozer/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libffi/arm64-v8a__ndk_target_21/libffi': configure: error: C compiler cannot create executables anyone know why my C compiler is complaining? any help is appreciated, not much help online
@@danielzuza I skipped all of this and went and used Google Colab for it. I didn't want to spend weeks searching for what dependencies were missing and then mess up my system. Google Colab is just as good, though once the session times out you have to compile everything all over again and that takes a few mins. I cant remember the YT channel that i found detail instructions on but they are out there. Good Luck!
Hi please help! Everything works well til command in Ubuntu: adb connect YOUR_IP:5555. the error message is: failed to connect to 'myIP:5555': Connection timed out. Even in cmd i got the same massage like your: restarting in TCP mode port: 5555. All your steps with setting phones I checked. Do you have for me some suggestion?
that worked well ! too bad we can't use buildozer directly from cmd and that WSL can't access USB easily. Before watching this video I tried to hack around with WSL by redirecting adb to the cmd one with a symbolic link. It failed miserably but connected through tcpip did the job in the end.
nice tutorial! works perfectly for me on test app but same steps on my own give following error: "Android SDK dir not specified exiting" do you know a solution to it?
I added numpy in requirement in buildozer.spec, but when I execute the command "buildozer android debug deploy run logcat", it is giving me an error that no module named Cython and running cythonize failed. If I remove numpy, then it is not giving the error. But I need numpy for my app. Can you help me? Thank You.
There is a post on stackoverflow with a solution to your problem: stackoverflow.com/questions/66973759/cython-not-found-please-install-it-error-in-buildozer
@@fullstacklab I had that same error and followed the stackoverflow solution and it allowed me to run buildozer it ran for 20 minutes or so and at the very end it gave me an error "could not find a version that satisfies the requirement Cython (from versions: none)"
Hey mate. Those libraries are independent from the project and will not be installed inside of the buildozer folder. Apt and pip are package managers that have predefined install paths for the libraries. So you can run them from anywhere.
Nice tutorial, but i have a problem. "OSError: Could not find the TLS certificate file, invalid path: certificate.pem.crt" how can i solve this problem ?
Ok, certainly user error, but I put in the web address to download the example github files and I get a "no such file or directory" error. Which isn't the case because I can download it on my browser and such. I didn't have a typo in there either as it's copy pasted.
I figured out that was the issue a couple of hours ago. I totally thought I commented saying I figured it out and what the problem was. I'm just a total noob when it comes to Linux and in the video it just looked like you were pasting the link directly into it. Thanks for the quick reply!
Hey Friend. So far, I have managed to follow your video the best online. But I do need help, I have the repositories cloned, and have the buildozer.spec file initialised. I am confused how you got to the point where you could modify the buildozer spec file...I seem to have no way to view the spec file...
Hey Harry! You just need to go to the location of the buildozer.spec file and open it with an editor like nano (for Linux) or vscode/pycharm (windows).
Hey Denicz ... I am following your tutorials but the problem is that a device id of my phone is not showing in the Linux shell. Even I start the ADB server in windows PowerShell but it shows only my phone ' ip_address:5555' device in the Linux shell.
The .kv file contains the structure and design of your kivy widgets. It's similar to a CSS file of a website. It has nothing to do with the build process. You can define all your kivy widgets in the main.py file but I do recommend to separate it from the python code. It makes your code easier to read and to maintain.
I haven't tried it for iOS yet. I guess you need to adjust the buildozer file. There are some settings for iOS and then follow the documentation: kivy.org/doc/stable/guide/packaging-ios.html
Hey folks :) You can find the most important commands in the description. I also want to mention this tutorial works perfectly fine for Ubuntu.
I have this error: C compiler cannot create executables
And i have some simple problem my app crush on start and thoesent put ligcat
Upgrade WSL from WSL1 to WSL2
Didn't watch yet but wanted to say, just love your description section.
Nice tutorial! Just one little thing: in order to make this work, WSL needs to be upgraded from WSL1 to WSL2, otherwise you get 'C compiler cannot create executables' error
I was struggling with that. Thanks a lot!
I dont understrand anything, why is there suddenly a .sepc and buildozer folder in the github project, last time these two folders did not exist
Your tutorial really helped me compile my app. Thank you very much
I'm glad I could help :)
Hey bro can you help me to deploy my program because I am facing errors again and agai
Please reply if you can do so
This Video is really helpful. respect man!!!
Wonderful! Thank you so much!
You're welcome :)
Vielen Dank!!! Du bist ein life saver
I wish I could like this video twice.
Thanks! Well, you can recommend it to someone else :)
@@fullstacklab Hello, thanks for your informative and useful video tutorial. But unfortunately I couldn't make a single APK file using buildozer. I'm not assuming that this tutorial is misleading though.
I'm officially giving up and I'm gonna start learning Kotlin to make Android apps.
@@shoxruxsunnatov No worries. Kotlin will be the better choice because you can create native android apps with it. Kivy is only for very basic apps and has a lot of limitations. It's advantage is that it's pretty easy to set up. May I ask, what's the issue? To create an apk successfully with buildozer, it's all about the buildozer .spec file.
a fantastic video. hats off
The apk is created but it is not running on the mobile.
I had to do a few more things to clear all the errors
1 error was the file not found on the url. I found out that if you are behind a proxy it can happen. So connected with a different network and it worked. I got kivy errors those were resolved by installing h5py separately.
This video helped a lot with getting my app up and running, especially the parts where you go back and debug. Thanks a bunch! Another similar (but less helpful) video I found used VirtualBox for their virtual Ubuntu environment, and they didn't have to mess around with adb. Is there a reason you didn't go that route? When I see two different ways to do something it leaves me wondering why choose one over the other. Thanks again!
Hey Mikkel! I'm glad I could help. I was using the virtual machine before but I had a lot of issues with the connection to my phone. Also, the setup with the Ubuntu Subsystem nowadays is way easier and cleaner and it allows you to do all the development on windows. Transferring data from windows to the subsystem and back is no big deal. Cheers
Super Tutorial :)
Very nice
thank you very much. u save my life
thanks for making a video like this
@ 7:38, How would I reference a file in the "data" folder within my main.py file, in other words what file path should i give the python file so it will be able to find it when being run on the android phone?
checking whether the C compiler works... no
configure: error: in `/home/xxx/bin/buildozer/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libffi/arm64-v8a__ndk_target_21/libffi':
configure: error: C compiler cannot create executables
anyone know why my C compiler is complaining? any help is appreciated, not much help online
I face the issue, i found no solution so far. Have you overcome that problem, if yes what was the solution?
@@danielzuza I skipped all of this and went and used Google Colab for it. I didn't want to spend weeks searching for what dependencies were missing and then mess up my system. Google Colab is just as good, though once the session times out you have to compile everything all over again and that takes a few mins. I cant remember the YT channel that i found detail instructions on but they are out there. Good Luck!
im facing this error too, anyone have other solutions?
Hi! Very nice totorial!, I have this same issue, did anyone fix it? Thanks,
Im gettin the same error, did you find the right solution? thanks@@DubbyBoy12
when pasting the link to your program's github in the terminal I get the error - bash: no such files or directories. Is there any way how i can fix it
You need to add the command "git clone" in front of the link, e.g. "git clone github.com/denczo/kivy_examples"
@@fullstacklab Thanks, i had the same problem.
Hi please help! Everything works well til command in Ubuntu: adb connect YOUR_IP:5555. the error message is: failed to connect to 'myIP:5555': Connection timed out. Even in cmd i got the same massage like your: restarting in TCP mode port: 5555. All your steps with setting phones I checked. Do you have for me some suggestion?
Update: I found problem. My phone was using 4g internet, not wifi.
that worked well ! too bad we can't use buildozer directly from cmd and that WSL can't access USB easily. Before watching this video I tried to hack around with WSL by redirecting adb to the cmd one with a symbolic link. It failed miserably but connected through tcpip did the job in the end.
nice tutorial! works perfectly for me on test app but same steps on my own give following error: "Android SDK dir not specified exiting" do you know a solution to it?
thanks so much for your help it means a lot
Glad i could help :) Hope this video takes the mystery around buildozer away
I added numpy in requirement in buildozer.spec, but when I execute the command "buildozer android debug deploy run logcat", it is giving me an error that no module named Cython and running cythonize failed. If I remove numpy, then it is not giving the error. But I need numpy for my app. Can you help me? Thank You.
Thank for Your nice tutorial
I'm glad I could help :)
Im stuck for 2 days trying to finish my app and upload it. Hope it works
Had to put in sudo apt-get update to be able to install python in case anyone has issues.
good point
@@fullstacklab I'll try it. Because it did not find ipython, nor cython. Maybe this is why. I'll try this approach after work. Thank you.
@@fullstacklab well it cannot find ipython. Is ipython dead? Cython has been found
had to use this command and it was found:
sudo pip3 install ipython
Thanks Bro 💪
buildozer requires api adnroid level 21 but my 16(i think) , somemone know smth abouy that?
i always get an error when installing cython. i dont know why. it just gives me this error:
E: Package 'cython' has no installation candidate
There is a post on stackoverflow with a solution to your problem: stackoverflow.com/questions/66973759/cython-not-found-please-install-it-error-in-buildozer
@@fullstacklab I had that same error and followed the stackoverflow solution and it allowed me to run buildozer it ran for 20 minutes or so and at the very end it gave me an error "could not find a version that satisfies the requirement Cython (from versions: none)"
sorry if this may stupid so should i install all these required libraries into the cloned buildozer folder
Hey mate. Those libraries are independent from the project and will not be installed inside of the buildozer folder. Apt and pip are package managers that have predefined install paths for the libraries. So you can run them from anywhere.
Hello, please i need your help, i am getting this error: fatal: could not set 'core.filemode' to 'false'
adb logcat | grep "python"
Worked for me probably cuz of different version of adb.
Thanks a lot.
How can i deploy my app if I'm using windows? is it necessary to use linux
Nice tutorial, but i have a problem. "OSError: Could not find the TLS certificate file, invalid path: certificate.pem.crt" how can i solve this problem ?
mamaboy
Ok, certainly user error, but I put in the web address to download the example github files and I get a "no such file or directory" error. Which isn't the case because I can download it on my browser and such. I didn't have a typo in there either as it's copy pasted.
Hey Hoptimus_Prime! Did you add the "git clone" command in front of the link? "git clone github.com/denczo/kivy_examples"
I figured out that was the issue a couple of hours ago. I totally thought I commented saying I figured it out and what the problem was. I'm just a total noob when it comes to Linux and in the video it just looked like you were pasting the link directly into it. Thanks for the quick reply!
Hey Friend. So far, I have managed to follow your video the best online. But I do need help, I have the repositories cloned, and have the buildozer.spec file initialised.
I am confused how you got to the point where you could modify the buildozer spec file...I seem to have no way to view the spec file...
Hey Harry! You just need to go to the location of the buildozer.spec file and open it with an editor like nano (for Linux) or vscode/pycharm (windows).
Es posible abrir este proyecto desde Android Studio ? . Muchas Gracias!
Hey Denicz ... I am following your tutorials but the problem is that a device id of my phone is not showing in the Linux shell. Even I start the ADB server in windows PowerShell but it shows only my phone ' ip_address:5555' device in the Linux shell.
Hey Jamal! Have you tried it using the windows command prompt? I haven't tested it with the PowerShell yet.
@@fullstacklab okay I'll try it on command prompt. Then I'll tell you my result. Thanks for reply
@@fullstacklab I tried using the windows command prompt but still facing the same issue :(
just use your ip
@@JamalKhan-zl8lu
hey dude in windows have an other git...
I can not find setup.py in my buildozer directory
Same here - any solution to this ?
is the .kv file necessary? if yes how to build it?
The .kv file contains the structure and design of your kivy widgets. It's similar to a CSS file of a website. It has nothing to do with the build process. You can define all your kivy widgets in the main.py file but I do recommend to separate it from the python code. It makes your code easier to read and to maintain.
tu ensinou metade e a outra metade tu simplesmente cortou boa parte de como chegava as pastas e como usava o arquivo mds
How do I package a kivvy app for iOS?
I haven't tried it for iOS yet. I guess you need to adjust the buildozer file. There are some settings for iOS and then follow the documentation: kivy.org/doc/stable/guide/packaging-ios.html
linux aint installing