Build & Deploy Kivy Python App (.apk) with Buildozer to Android (Windows & Linux)

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 พ.ย. 2024

ความคิดเห็น • 95

  • @fullstacklab
    @fullstacklab  2 ปีที่แล้ว +10

    Hey folks :) You can find the most important commands in the description. I also want to mention this tutorial works perfectly fine for Ubuntu.

    • @gideonocholi130
      @gideonocholi130 ปีที่แล้ว

      I have this error: C compiler cannot create executables

    • @spozniony5499
      @spozniony5499 ปีที่แล้ว

      And i have some simple problem my app crush on start and thoesent put ligcat

    • @polalonso4808
      @polalonso4808 9 หลายเดือนก่อน

      Upgrade WSL from WSL1 to WSL2

  • @agnichatian
    @agnichatian 2 ปีที่แล้ว +4

    Didn't watch yet but wanted to say, just love your description section.

  • @polalonso4808
    @polalonso4808 9 หลายเดือนก่อน +3

    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

    • @assato1805
      @assato1805 3 หลายเดือนก่อน

      I was struggling with that. Thanks a lot!

  • @andadong4520
    @andadong4520 7 หลายเดือนก่อน +5

    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

  • @trillionairetrader798
    @trillionairetrader798 ปีที่แล้ว +1

    Your tutorial really helped me compile my app. Thank you very much

    • @fullstacklab
      @fullstacklab  ปีที่แล้ว

      I'm glad I could help :)

    • @skroyeducation2166
      @skroyeducation2166 ปีที่แล้ว

      Hey bro can you help me to deploy my program because I am facing errors again and agai

    • @skroyeducation2166
      @skroyeducation2166 ปีที่แล้ว

      Please reply if you can do so

  • @Samssh-t
    @Samssh-t 2 ปีที่แล้ว

    This Video is really helpful. respect man!!!

  • @jitheshkuyyalil
    @jitheshkuyyalil 10 หลายเดือนก่อน

    Wonderful! Thank you so much!

    • @fullstacklab
      @fullstacklab  10 หลายเดือนก่อน

      You're welcome :)

  • @Tecknoc
    @Tecknoc 7 หลายเดือนก่อน

    Vielen Dank!!! Du bist ein life saver

  • @shoxruxsunnatov
    @shoxruxsunnatov 10 หลายเดือนก่อน

    I wish I could like this video twice.

    • @fullstacklab
      @fullstacklab  10 หลายเดือนก่อน

      Thanks! Well, you can recommend it to someone else :)

    • @shoxruxsunnatov
      @shoxruxsunnatov 9 หลายเดือนก่อน

      ​@@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.

    • @fullstacklab
      @fullstacklab  9 หลายเดือนก่อน

      @@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.

  • @vinayak254
    @vinayak254 2 หลายเดือนก่อน

    a fantastic video. hats off

  • @squeakykleen2176
    @squeakykleen2176 ปีที่แล้ว

    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.

  • @MikkelUnrau
    @MikkelUnrau ปีที่แล้ว

    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!

    • @fullstacklab
      @fullstacklab  ปีที่แล้ว +1

      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

  • @Schnieker
    @Schnieker 2 ปีที่แล้ว +1

    Super Tutorial :)

  • @PhilsLab
    @PhilsLab 2 ปีที่แล้ว

    Very nice

  • @hellocodeur
    @hellocodeur 4 หลายเดือนก่อน

    thank you very much. u save my life

  • @zerobudget1041
    @zerobudget1041 2 ปีที่แล้ว

    thanks for making a video like this

  • @joefish2177
    @joefish2177 ปีที่แล้ว +1

    @ 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?

  • @PIKL4x4
    @PIKL4x4 2 ปีที่แล้ว +2

    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
      @danielzuza ปีที่แล้ว +1

      I face the issue, i found no solution so far. Have you overcome that problem, if yes what was the solution?

    • @PIKL4x4
      @PIKL4x4 ปีที่แล้ว +1

      @@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!

    • @DubbyBoy12
      @DubbyBoy12 ปีที่แล้ว +1

      im facing this error too, anyone have other solutions?

    • @sebastiandalsgaard9539
      @sebastiandalsgaard9539 ปีที่แล้ว +1

      Hi! Very nice totorial!, I have this same issue, did anyone fix it? Thanks,

    • @isaacpolo8643
      @isaacpolo8643 ปีที่แล้ว

      Im gettin the same error, did you find the right solution? thanks@@DubbyBoy12

  • @olafdevos4355
    @olafdevos4355 2 ปีที่แล้ว +2

    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

    • @fullstacklab
      @fullstacklab  2 ปีที่แล้ว +4

      You need to add the command "git clone" in front of the link, e.g. "git clone github.com/denczo/kivy_examples"

    • @smarttv3304
      @smarttv3304 2 ปีที่แล้ว

      @@fullstacklab Thanks, i had the same problem.

  • @leosngo391
    @leosngo391 หลายเดือนก่อน

    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?

    • @leosngo391
      @leosngo391 หลายเดือนก่อน +1

      Update: I found problem. My phone was using 4g internet, not wifi.

  • @pmc56982
    @pmc56982 10 หลายเดือนก่อน

    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.

  • @bappe95
    @bappe95 2 ปีที่แล้ว +1

    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?

  • @kaii7075
    @kaii7075 2 ปีที่แล้ว

    thanks so much for your help it means a lot

    • @fullstacklab
      @fullstacklab  2 ปีที่แล้ว

      Glad i could help :) Hope this video takes the mystery around buildozer away

  • @panchajanya91
    @panchajanya91 ปีที่แล้ว

    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.

  • @Fan_bamaYT
    @Fan_bamaYT ปีที่แล้ว

    Thank for Your nice tutorial

  • @m.dharun4759
    @m.dharun4759 ปีที่แล้ว

    Im stuck for 2 days trying to finish my app and upload it. Hope it works

  • @eugenesheelyvideos8687
    @eugenesheelyvideos8687 2 ปีที่แล้ว +1

    Had to put in sudo apt-get update to be able to install python in case anyone has issues.

    • @fullstacklab
      @fullstacklab  2 ปีที่แล้ว

      good point

    • @potschochterpotschochter2403
      @potschochterpotschochter2403 2 ปีที่แล้ว

      @@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.

    • @potschochterpotschochter2403
      @potschochterpotschochter2403 2 ปีที่แล้ว

      @@fullstacklab well it cannot find ipython. Is ipython dead? Cython has been found

    • @potschochterpotschochter2403
      @potschochterpotschochter2403 2 ปีที่แล้ว

      had to use this command and it was found:
      sudo pip3 install ipython

  • @drapek99
    @drapek99 10 หลายเดือนก่อน

    Thanks Bro 💪

  • @hakimatakto667
    @hakimatakto667 ปีที่แล้ว

    buildozer requires api adnroid level 21 but my 16(i think) , somemone know smth abouy that?

  • @adfinemrising
    @adfinemrising 2 ปีที่แล้ว

    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

    • @fullstacklab
      @fullstacklab  2 ปีที่แล้ว

      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

    • @Hoptimus_Prime
      @Hoptimus_Prime ปีที่แล้ว

      @@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)"

  • @notmidhun2365
    @notmidhun2365 3 หลายเดือนก่อน

    sorry if this may stupid so should i install all these required libraries into the cloned buildozer folder

    • @fullstacklab
      @fullstacklab  3 หลายเดือนก่อน

      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.

  • @2pacOk4
    @2pacOk4 ปีที่แล้ว

    Hello, please i need your help, i am getting this error: fatal: could not set 'core.filemode' to 'false'

  • @mertmehmetaraz3119
    @mertmehmetaraz3119 5 หลายเดือนก่อน

    adb logcat | grep "python"
    Worked for me probably cuz of different version of adb.

  • @jorgeossa71
    @jorgeossa71 2 ปีที่แล้ว

    Thanks a lot.

  • @akhilavissomraju1245
    @akhilavissomraju1245 7 หลายเดือนก่อน

    How can i deploy my app if I'm using windows? is it necessary to use linux

  • @drbroering1990
    @drbroering1990 2 ปีที่แล้ว

    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 ?

  • @Hoptimus_Prime
    @Hoptimus_Prime ปีที่แล้ว

    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.

    • @fullstacklab
      @fullstacklab  ปีที่แล้ว

      Hey Hoptimus_Prime! Did you add the "git clone" command in front of the link? "git clone github.com/denczo/kivy_examples"

    • @Hoptimus_Prime
      @Hoptimus_Prime ปีที่แล้ว

      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!

  • @HoRRoRlets
    @HoRRoRlets 2 ปีที่แล้ว

    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...

    • @fullstacklab
      @fullstacklab  2 ปีที่แล้ว +1

      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).

  • @claudiojlf
    @claudiojlf 2 ปีที่แล้ว

    Es posible abrir este proyecto desde Android Studio ? . Muchas Gracias!

  • @JamalKhan-zl8lu
    @JamalKhan-zl8lu ปีที่แล้ว

    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.

    • @fullstacklab
      @fullstacklab  ปีที่แล้ว +1

      Hey Jamal! Have you tried it using the windows command prompt? I haven't tested it with the PowerShell yet.

    • @JamalKhan-zl8lu
      @JamalKhan-zl8lu ปีที่แล้ว

      @@fullstacklab okay I'll try it on command prompt. Then I'll tell you my result. Thanks for reply

    • @JamalKhan-zl8lu
      @JamalKhan-zl8lu ปีที่แล้ว +1

      ​@@fullstacklab I tried using the windows command prompt but still facing the same issue :(

    • @rozzi1936
      @rozzi1936 11 หลายเดือนก่อน

      just use your ip
      @@JamalKhan-zl8lu

  • @mehmetfurkanyazici
    @mehmetfurkanyazici ปีที่แล้ว

    hey dude in windows have an other git...

  • @esraissam8042
    @esraissam8042 2 ปีที่แล้ว

    I can not find setup.py in my buildozer directory

  • @ilhemkacimi4787
    @ilhemkacimi4787 ปีที่แล้ว

    is the .kv file necessary? if yes how to build it?

    • @fullstacklab
      @fullstacklab  ปีที่แล้ว

      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.

  • @socialcraftr
    @socialcraftr 2 ปีที่แล้ว

    tu ensinou metade e a outra metade tu simplesmente cortou boa parte de como chegava as pastas e como usava o arquivo mds

  • @jimgelston
    @jimgelston 2 ปีที่แล้ว

    How do I package a kivvy app for iOS?

    • @fullstacklab
      @fullstacklab  2 ปีที่แล้ว

      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

  • @beep615
    @beep615 6 หลายเดือนก่อน

    linux aint installing