Python PyGame to Android App: How to make .apk and .aab files with Buildozer Full Tutorial

Поделиться
HTML-код
  • Опубликовано: 29 янв 2025

Комментарии • 59

  • @johnstarfire
    @johnstarfire Год назад +16

    I've seen the web version and it's great, thanks a lot, I was looking for something like this for a long time. I just need to watch carefully your tutorial.

    • @FinFET
      @FinFET  Год назад

      It is a bit complex, but it's way easier than what I thought it would be!

    • @mdirfan_475
      @mdirfan_475 9 месяцев назад

      Hello how to add vb gas disc please it's an emergency ​@@FinFET

  • @KoLoap817
    @KoLoap817 10 месяцев назад +8

    I am getting an error when running buildozer -v android debug, I get this error sdl2/sdl2.c:211:12: fatal error: 'longintrepr.h' file not found
    #include "longintrepr.h"
    Any ideas?

    • @dominik9516
      @dominik9516 10 месяцев назад +3

      I have the same problem. Did you find a solution?

    • @ZubairAli-bb8ic
      @ZubairAli-bb8ic 9 месяцев назад +4

      same error

    • @ghegogago8297
      @ghegogago8297 9 месяцев назад +1

      same

    • @_Tigertatze_
      @_Tigertatze_ 8 месяцев назад

      for me it fixet it by define the pygame version: pygame==2.5.2 but the apk dont work and only use android.archs = arm64-v8a

    • @KivySchool
      @KivySchool 5 месяцев назад +1

      solution:
      `buildozer appclean`
      update the buildozer requirements (update them, do not just add these lines, for example replace python3 with python3==3.10.12):
      python3==3.10.12,kivy==2.3.0,hostpython3==3.10.12,pyjnius==1.5.0
      it will build right

  • @teafd
    @teafd Год назад +5

    keep up the good work man, this tutorial has helped me alot, i am now uploading version 0.2 of my app. thanks you!

  • @prashantrawat3096
    @prashantrawat3096 11 месяцев назад

    The best video i have ever seen . I am sooooo much thankful for this information ❤❤❤❤❤❤❤❤❤❤❤

  • @slvgame
    @slvgame 8 месяцев назад +3

    can you tell me which versions of packages you're using to build this?

  • @CARBONTEAofficial
    @CARBONTEAofficial Год назад +3

    this doesnt seem to work for me. followed steps with sudo, without sudo, buildozer fails to download (at random 80-99.9%) necessary android packages complaining about urllib and downloaded file sizes smaller than expected. if i manually dl android packages it works until it starts to download hostpython and hangs there as well complaining about downloaded file size smaller than etc etc..urllib error again. im not sure how to proceed. btw, i did this on win10, virtualbox, etc. also same errors with windows powershell ubuntu emulation. dl always hangs and scripts seem to give up after a few tries. no problems downloading anything else, big or small. also, pip, pip3 works, never hangs. just buildozer scripts. halp.

    • @FinFET
      @FinFET  Год назад +1

      there is an Android related channel on Pygame's Discord, people there could help better, not sure what the problem is, sometimes when I find weird errors I delete all buildozer related files and start over, but sometimes it is something silly like a special character in a filename or folder or something like that discord.com/channels/772505616680878080/889466401004339210

  • @remboldt03
    @remboldt03 9 месяцев назад +2

    Can I use other libraries inside that APK? Like _requests_ for API calls? Also I'd neet to open a webview for Ads.

  • @JsoProductionChannel
    @JsoProductionChannel 18 дней назад

    Can I use gspread package in my python program and still convert it to an app?

  • @victorhugo9839
    @victorhugo9839 4 месяца назад +3

    vi que era brasileiro pelo sotaque, valeu meu rei

  • @thefatkid12
    @thefatkid12 7 месяцев назад +4

    bro the video was fast as lighning HOW AM I SUPPOSED TO SEE IT?!

  • @ThunderxBoy
    @ThunderxBoy 4 месяца назад +3

    Perfect vid, explained amazingly in a short amout of time
    edit: there is an error that occurs specifically when generating apk with pygame, after running the buildozer for an about 20 mins I gte the error:
    sdl2/sdl2.c:211:12: fatal error: 'longintrepr.h' file not found
    #include "longintrepr.h
    I assume its a new error because the first publish about it I could find on the enternet was just a few months ago.

  • @mac7xp
    @mac7xp 6 месяцев назад +5

    nice video, man.. just had a little problem with your accent, whatever, thanks for making this video..

    • @FinFET
      @FinFET  6 месяцев назад +3

      lol, subtitles are available 😅

  • @IgorZyden
    @IgorZyden Год назад +7

    How about to show how to make in-app purchases for Google Play in Kivy or PyGame code ?

    • @x4vih338
      @x4vih338 11 месяцев назад +1

      Lol, since in-app purchases is an API for Java or Kotlin as well, it is impossible to call the API functions from pygame, you could create a way to communicate between Java and python to call the functions you wanna call then you would be done

  • @terraredondista
    @terraredondista 3 месяца назад

    Nice video ❤

  • @koss165
    @koss165 11 месяцев назад

    TY for clear instruction, dude!

  • @JossyDR
    @JossyDR 5 месяцев назад

    I've been trying this exactly as you've mentioned in this video, but the terminal will always throw an error saying that this is an externally-managed-environment.
    However, you're not getting that error yourself, so I cannot see why I'm encountering the error.

    • @FinFET
      @FinFET  5 месяцев назад

      I guess is related to pip, maybe someone on the discord channel can help you discord.com/channels/772505616680878080/889466401004339210

  • @aintNexus
    @aintNexus Год назад +3

    hey man! remember me? Mudei para python e estou aprendendo um pouco de C :) yup learning portughese!

    • @FinFET
      @FinFET  Год назад

      Opa, que legal cara! pode até assistir os vídeos do meu canal em portugues heheh

  • @LoongBerries
    @LoongBerries 11 месяцев назад

    where to get the iso file for the lubuntu in the video

    • @FinFET
      @FinFET  11 месяцев назад

      cdimage.ubuntu.com/lubuntu/releases/20.04/release/

    • @LoongBerries
      @LoongBerries 11 месяцев назад

      @@FinFET thanks really much,you are nice guy, thank you

  • @ahmedfitness5572
    @ahmedfitness5572 Год назад +1

    Hello i have apk ineed to convert to aab can help me

    • @FinFET
      @FinFET  Год назад

      do you have the source? is it python? if not, then I don't know how =/

  • @Luis-Mussa
    @Luis-Mussa Год назад +1

    Olá tudo bem goste muito dos seus vídeos
    mas tenho é esso quando faço Buildozer dá esse erro o que pode vir ser e esse erro da no final # 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

    • @FinFET
      @FinFET  Год назад

      Dificil dizer, teria que ver o restante do log, tem um canal no Discord do Pygame relacionado ao android, pessoal lá pode ajudar tbm discord.com/channels/772505616680878080/889466401004339210

  • @Codis000
    @Codis000 8 месяцев назад

    THANKS BRO!!!
    👍👍👍👍👍👍👍👍👍👍👍

  • @suchaluch5615
    @suchaluch5615 10 месяцев назад

    Nice description, easy to follow and to the point. Thanks a lot, great work!

  • @SkyFly19853
    @SkyFly19853 Год назад +1

    That's my little buddy... 🤔😏

  • @edua1343
    @edua1343 Год назад +1

    Hey, do you think the fps are better than on web?

    • @FinFET
      @FinFET  Год назад

      Its a bit better than running the web version on a mobile browser

  • @mrsher4517
    @mrsher4517 Год назад +1

    Hi thanks for the video. I am having trouble with android permissions like INTERNET and READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE. Even though I have included them in my buildozer spec file my app can't connect to Internet and save files to SD card. Could you please help?

  • @codewithatharv5210
    @codewithatharv5210 Год назад +1

    can we run buildozer in google colab?
    Would that work?

    • @FinFET
      @FinFET  Год назад

      This could be a great way, I didn't try, but I found this colab.research.google.com/drive/1Rc8HJn8iWl1qGAj-k7crKe10Aq9pgwgn?usp=sharing

    • @codewithatharv5210
      @codewithatharv5210 Год назад +1

      @@FinFET Thanks Buddy

    • @pmtcreative4090
      @pmtcreative4090 Год назад

      ​@@codewithatharv5210is that work?

    • @codewithatharv5210
      @codewithatharv5210 Год назад

      @@pmtcreative4090 I didn't understand what you are trying to say

  • @nhatsanchau1613
    @nhatsanchau1613 Год назад +1

    Hey dude ! I tried turning a pool game in py to apk. Even though it was succesful, but when I opened the app, it didn't run and crashed immediately, I don't know what's wrong, is it because the window of the game is too big ? I checked the images and they are fine. Please help me, thank you so much !

    • @nhatsanchau1613
      @nhatsanchau1613 Год назад

      I know my problem, when I wrote pymunk to buildozer.spec file and then convert to apk, there was an error, how do I fix it ?

    • @FinFET
      @FinFET  Год назад

      @@nhatsanchau1613 try adding logcat grep python to the end of the buildozer command to see the error msgs

    • @nhatsanchau1613
      @nhatsanchau1613 Год назад

      @@FinFET Hi I still couldn't fix the error, can you tell me how to add pymunk to the buildozer.spect. Thank you

  • @jdp25
    @jdp25 5 месяцев назад +1

    Does this still works in 2024 September?

    • @FinFET
      @FinFET  4 месяца назад

      Haven't tried it for a while but I think it should still work fine

  • @codewithatharv5210
    @codewithatharv5210 Год назад +1

    That's HElpful:)))

  • @ratiemand4529
    @ratiemand4529 Год назад +1

    Great, useful video! By the way, I'm not sure if you are interested but I sent you an email to your business contact.