Python Code to Android APK with Flet | Test APK in Virtual Emulator

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

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

  • @max_unch
    @max_unch 7 месяцев назад +2

    Nice video man! Thank you for this simple tutorial.

  • @scoobyisadog
    @scoobyisadog 8 месяцев назад +2

    Thanks so much. I would love a tutorial on integrating existing flutter packages into a flet build. Flutter and Dart are a whole new thing (which is why i was attracted to using Flet in the first place, to avoid learning those lol).

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

      We are working on a guide for that. Flet is really awesome and easy to learn, isn’t it? :)

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

      @@ndonkoHenriHuge thanks for all your contributions. Im working on adding mediapipe to flet, hopefully someone beats me to it as im a tad out of my depth haha.

  • @peterstarboy9533
    @peterstarboy9533 8 месяцев назад +2

    Pas mal labas 💪🏽💪🏽
    Je regarde rarement les vidéos ci jusqu’au bout 😂

  • @tikinfluence
    @tikinfluence 3 месяца назад +1

    Nice video sir. Sir please can you make a video on how to use flet for the front end and django for the backend? we are many of us waiting for such a tutorial, you will be the first on youtube to do it. thanks

  • @vxncius
    @vxncius 3 месяца назад +1

    Gosto da liberdade criativa do Flutter e do poder do backend do python e o Flet é perfeito pros meus projetos arquivados 😅🇧🇷✨😎 Vídeo excelente obrigado

  • @KARYEIJAFELEX
    @KARYEIJAFELEX 2 месяца назад

    Hello,thank you for this video. Video on how to package native packages? Waiting for such an amazing tutorial

  • @fasilwandoor532
    @fasilwandoor532 8 месяцев назад +7

    Why a simple app size becomes 84 MB ??

    • @ndonkoHenri
      @ndonkoHenri  7 месяцев назад +2

      We are working on optimizing this.

    • @ABHISHEKSINGH-jy1cn
      @ABHISHEKSINGH-jy1cn 4 месяца назад +1

      ​@@ndonkoHenri Did you make it smaller

    • @ndonkoHenri
      @ndonkoHenri  4 месяца назад +1

      @@ABHISHEKSINGH-jy1cn flet.dev/docs/publish/android#building-platform-specific-apk

  • @patsadelon8241
    @patsadelon8241 3 месяца назад +2

    Greaaaaat

  • @ПавелШаламов-ж3д
    @ПавелШаламов-ж3д 5 месяцев назад +1

    Why dont you show how you installed android studio and flutter? I for example getting error when building apk and it would be very useful to see how you installed all dependencies

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

      I didn’t show this because there are a lot of videos/articles on this topic out there. If you face issues, I suggest you google them. If you get errors while using flet build command, please open a discussion on the Flet repo, with details about it.

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

    Can you explain to us in the next video how can we build apk when we use library as numpy ?

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

      Thanks for your suggestion!
      Will find some time to talk on that.

  • @eiji1136
    @eiji1136 6 месяцев назад +4

    when I run flet build apk, this error appears "OSError: [WinError 193] %1 is not a valid Win32 app"

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

      I have the same problem

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

      Same, have you found a solution?

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

      Sorry for that. I suggest you open a discussion or issue on the Flet repo with details to this problem.

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

      hey bro try switching your python version the latest 3.12 causing this error everytime, i tried with python 3.9 and it works

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

      @@bestquizMLBB hey bro try switching your python version the latest 3.12 causing this error everytime, i tried with python 3.9 and it works

  • @CarlosAlonso-m1g
    @CarlosAlonso-m1g 6 месяцев назад +1

    Nice, and what if I have an .kv file to feed my main.py project?

    • @ndonkoHenri
      @ndonkoHenri  6 месяцев назад

      .kv files are meant to be used in projects making use based on the Kivy Python framework.
      To be brief, they are useless in Flet. 😅

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

    Thank you.
    Is this method flet version and platform independent?

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

      Yep. Flet is a cross-platform framework and building APK can be done on any platform (Linux, macOS, Windows).
      Video Recommendation: ruclips.net/video/ObO-D2TD_wo/видео.html

  • @Abid-gamer5
    @Abid-gamer5 4 месяца назад +1

    Sir how can i change the app logo icon??

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

      It is mentioned in the documentation: flet.dev/docs/publish#icons

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

      In assets directory, replace the icon.png to other image with the same name

  • @Frank-qg3ie
    @Frank-qg3ie 8 месяцев назад +1

    Great work bro 👊🏾

  • @JamesNdoumbe-g8x
    @JamesNdoumbe-g8x 3 месяца назад

    Big up 🧠 so amazing

  • @fellipelopessilva6982
    @fellipelopessilva6982 4 месяца назад +1

    Hi, I created the apk, but when I launch it, it doesn't show anything, what could have happened?

    • @ndonkoHenri
      @ndonkoHenri  4 месяца назад +1

      Strange.
      Can you please open an issue on the Flet repo with all the details?

  • @QuransGems-zd1jd
    @QuransGems-zd1jd 4 месяца назад +1

    2:26 it gives me this error :
    flet : The term 'flet' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
    if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + flet build -h
    + ~~~~
    + CategoryInfo : ObjectNotFound: (flet:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

    • @ndonkoHenri
      @ndonkoHenri  4 месяца назад +1

      I guess you are on windows (powershell).
      Follow this: flet.dev/docs/getting-started/#python-venv-module
      Feel free to open a discussion on the Flet repo or tag me on the Flet discord so we can further discuss on it.

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

    Does this work for more complicated applications? Like an application which imports the yahoo finance library?

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

      Not all libraries for now.
      We are coming up with a solution for that: github.com/flet-dev/flet/issues/3839

  • @David-tl2de
    @David-tl2de Месяц назад

    I got a bug, can"t get fixed. Everytime app is put in background it does not resume. I think it has simething to do with life cycle but there is not enougth information

    • @ndonkoHenri
      @ndonkoHenri  Месяц назад +1

      Open a discussion on the Flet repo.

  • @tct123-private
    @tct123-private 8 месяцев назад

    Can you maybe show, how to upload this to play store (etc.)?

    • @ndonkoHenri
      @ndonkoHenri  7 месяцев назад +1

      We are working on a full guide on this. Stay tuned!

  • @codemedio6418
    @codemedio6418 3 дня назад

    I have this error :
    Error: No pubspec.yaml file found.
    This command should be run from the root of your Flutter project.

    • @ndonkoHenri
      @ndonkoHenri  2 дня назад +1

      Please open a discussion on the Flet GitHub repository, so we can discuss on it.

  • @kishore7552
    @kishore7552 Месяц назад

    when we add dependencies in requirement file it is not building apk it took time not working

    • @ndonkoHenri
      @ndonkoHenri  Месяц назад

      What error did you get? Please open a discussion on the Flet repo so we can discuss it.

  • @zandorpetrov8901
    @zandorpetrov8901 6 дней назад

    I have windows and have this error....
    py", line 87, in clone
    raise VCSNotInstalled(msg)
    cookiecutter.exceptions.VCSNotInstalled: 'git' is not installed.

    • @ndonkoHenri
      @ndonkoHenri  4 дня назад

      You need to install git: git-scm.com/book/en/v2/Getting-Started-Installing-Git

  • @fabsync
    @fabsync 7 месяцев назад +1

    fantastic video! It will be great to see like a noteapp with fastapi to see how flet endpoints work..

  • @MengistAbyssinia
    @MengistAbyssinia 7 месяцев назад

    After installing on my android app, it sometimes stops working, what do you think is the cause?

    • @ndonkoHenri
      @ndonkoHenri  7 месяцев назад

      That’s strange. Will you mind opening an issue on the Flet repo with all the details?

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

    oops thanks a lot for the tutorial but could you help me? I'm trying to build by w10.. After the APK is generated when I try to log in, it stays on a direct white screen and doesn't exit it

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

      Can you open an issue on the Flet repo?

  • @DANIELSILVA-ud4nk
    @DANIELSILVA-ud4nk 3 месяца назад

    I made a simple project and it took 3 hours to generate the apk, is there a bug or is it normal?

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

      This is very rare, but has happened to some devs.
      Difficult to say what’s the cause of that, honestly. Perhaps the device you are using?
      Anyway, you can open a discussion on the Flet repo so we discuss it.
      By the way, check out this video: ruclips.net/video/ObO-D2TD_wo/видео.html
      You will find it useful.

  • @jolsenekols
    @jolsenekols 23 дня назад

    Bro i want do this method with vscode , can i this?

  • @qudratillosalakhiddinov
    @qudratillosalakhiddinov 8 месяцев назад +1

  • @misteranonymous1157
    @misteranonymous1157 Месяц назад

    How to change the app icon and app name

    • @ndonkoHenri
      @ndonkoHenri  Месяц назад

      Everything is mentioned in the docs: flet.dev/docs/publish#icons

  • @viewsz
    @viewsz 8 месяцев назад +1

    great!

  • @burakkaanboyuk
    @burakkaanboyuk 2 месяца назад

    what is code editor name, is it vscode

  • @xulzayroix5974
    @xulzayroix5974 7 месяцев назад +1

    'flutter' command is not available in PATH. Install flutter SDK

    • @ndonkoHenri
      @ndonkoHenri  7 месяцев назад +1

      You need to have Flutter installed (and added to path), before you can use ‘flet build’ command.
      Link to docs: flet.dev/docs/publish#flutter-sdk

    • @arcelford-qi7vr
      @arcelford-qi7vr 6 месяцев назад

      @@ndonkoHenri i have a the same issue can you be more specific to your answer. Thanks!

    • @ndonkoHenri
      @ndonkoHenri  6 месяцев назад

      Please open an issue on the Flet repo: github.com/flet-dev/flet/issues/new/choose
      Let's continue the discussion from there.

  • @globalassemblage
    @globalassemblage 7 месяцев назад

    When we use any external package like mysql.connector then after apk build it shows error kindly suggest solution

    • @ndonkoHenri
      @ndonkoHenri  7 месяцев назад

      Please can you share the error you received in an issue on the Flet repo: github.com/flet-dev/flet/issues

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

    when i try to build apk, Could not move temporary workspace
    (C:\Users\marimon\.gradle\caches\transforms-4\e02f2cb1f59ba97d4ab357f969c96887-35f901b7-661d-4b2a-b760-7ce0c
    5495163) to immutable location
    (C:\Users\marimon\.gradle\caches\transforms-4\e02f2cb1f59ba97d4ab357f969c96887)
    > Could not move temporary workspace
    (C:\Users\marimon\.gradle\caches\transforms-4\e02f2cb1f59ba97d4ab357f969c96887-35f901b7-661d-4b2a-b760-7ce0c
    5495163) to immutable location
    (C:\Users\marimon\.gradle\caches\transforms-4\e02f2cb1f59ba97d4ab357f969c96887)

    • @ndonkoHenri
      @ndonkoHenri  2 месяца назад

      @marimon6634 Feel free to open an issue an issue on the Flet repo with all info to the issue.
      You might find this useful: Package Flet Python Apps for ALL Platforms using GitHub Actions | Desktop, Mobile & Web
      ruclips.net/video/ObO-D2TD_wo/видео.html

  • @ndonkoHenri
    @ndonkoHenri  8 месяцев назад +6

    Now that you can build an Android APK, what do you think of additionally publishing your application to the web platform?
    Of course, I got you covered 🙂: ruclips.net/video/CLzKZlv1IAA/видео.html

  • @Satpalsingh20631
    @Satpalsingh20631 6 месяцев назад

    How to change logo in flet python apk ?

    • @ndonkoHenri
      @ndonkoHenri  6 месяцев назад

      It is mentioned in our documentation: flet.dev/docs/publish#icons

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

    Fort bro❤

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

    does this need a Android sdk?

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

      Yep, Flutter requires it.

  • @VerBotWA_Mohamedhelal
    @VerBotWA_Mohamedhelal 7 месяцев назад

    hi I'm having a problem in flet build apk

    • @ndonkoHenri
      @ndonkoHenri  7 месяцев назад

      Can you please open an issue with all the details on the Flet repo(also check if the issue has not yet been reported/answered by other community members): github.com/flet-dev/flet/issues

    • @oscarfantozzi3688
      @oscarfantozzi3688 6 месяцев назад +1

      Run using flet build apk --verbose to see the details of your error.

  • @antoniofuller2331
    @antoniofuller2331 6 месяцев назад +4

    84MB lol. We're better off doing Java/Kotlin/flutter/dart the hard way. Python just take shortcuts to do very little lol

    • @ndonkoHenri
      @ndonkoHenri  6 месяцев назад +1

      Understandable! - Feel free to go with what best suits your needs.
      However, we are working on optimizing the application size.

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

      @@ndonkoHenri waiting for it. 100mb size is too much :)

    • @ndonkoHenri
      @ndonkoHenri  4 месяца назад +1

      @@deepakpune1 flet.dev/docs/publish/android#building-platform-specific-apk

    • @deepakpune1
      @deepakpune1 4 месяца назад +1

      @@ndonkoHenri awesome thanks, will try it

    • @newstodayyt1
      @newstodayyt1 2 месяца назад +1

      This is amazing some of us want to use python

  • @arcelford-qi7vr
    @arcelford-qi7vr 6 месяцев назад

    BUILD FAILED in 5m 26s
    Gradle task assembleRelease failed with exit code 1
    Error building Flet app - see the log of failed command above.

    • @ndonkoHenri
      @ndonkoHenri  6 месяцев назад

      Please open an issue on the Flet repo: github.com/flet-dev/flet/issues/
      Let’s continue the discussion from there.