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

Поділитися
Вставка
  • Опубліковано 24 гру 2024

КОМЕНТАРІ • 93

  • @max_unch
    @max_unch 8 місяців тому +3

    Nice video man! Thank you for this simple tutorial.

  • @peterstarboy9533
    @peterstarboy9533 9 місяців тому +3

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

  • @scoobyisadog
    @scoobyisadog 9 місяців тому +3

    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  9 місяців тому

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

    • @scoobyisadog
      @scoobyisadog 9 місяців тому

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

  • @tikinfluence
    @tikinfluence 4 місяці тому +2

    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

  • @Frank-qg3ie
    @Frank-qg3ie 9 місяців тому +2

    Great work bro 👊🏾

  • @ericmichel2963
    @ericmichel2963 14 днів тому +1

    you are the best 🥰🥰

  • @KARYEIJAFELEX
    @KARYEIJAFELEX 3 місяці тому +1

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

  • @eiji1136
    @eiji1136 7 місяців тому +5

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

    • @Yuriss363
      @Yuriss363 6 місяців тому

      I have the same problem

    • @bestquizMLBB
      @bestquizMLBB 6 місяців тому

      Same, have you found a solution?

    • @ndonkoHenri
      @ndonkoHenri  6 місяців тому

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

    • @TanmayBhatgare
      @TanmayBhatgare 4 місяці тому

      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 4 місяці тому

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

  • @fasilwandoor532
    @fasilwandoor532 9 місяців тому +8

    Why a simple app size becomes 84 MB ??

    • @ndonkoHenri
      @ndonkoHenri  8 місяців тому +2

      We are working on optimizing this.

    • @One_Peacex
      @One_Peacex 5 місяців тому +1

      ​@@ndonkoHenri Did you make it smaller

    • @ndonkoHenri
      @ndonkoHenri  5 місяців тому +1

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

  • @QuransGems-zd1jd
    @QuransGems-zd1jd 5 місяців тому +2

    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  5 місяців тому +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.

  • @JamesNdoumbe-g8x
    @JamesNdoumbe-g8x 4 місяці тому +1

    Big up 🧠 so amazing

  • @Abid-gamer5
    @Abid-gamer5 5 місяців тому +2

    Sir how can i change the app logo icon??

    • @ndonkoHenri
      @ndonkoHenri  5 місяців тому

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

    • @odiio3402
      @odiio3402 4 місяці тому

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

  • @da0ud
    @da0ud 4 місяці тому +1

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

    • @ndonkoHenri
      @ndonkoHenri  4 місяці тому

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

  • @dipeshsamrawat7957
    @dipeshsamrawat7957 4 місяці тому +1

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

    • @ndonkoHenri
      @ndonkoHenri  4 місяці тому

      Yep. Flet is a cross-platform framework and building APK can be done on any platform (Linux, macOS, Windows).
      Video Recommendation: ua-cam.com/video/ObO-D2TD_wo/v-deo.html

  • @ПавелШаламов-ж3д
    @ПавелШаламов-ж3д 6 місяців тому +2

    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  6 місяців тому

      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.

  • @CarlosAlonso-m1g
    @CarlosAlonso-m1g 7 місяців тому +2

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

    • @ndonkoHenri
      @ndonkoHenri  7 місяців тому

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

  • @fabsync
    @fabsync 8 місяців тому +2

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

  • @fellipelopessilva6982
    @fellipelopessilva6982 5 місяців тому +2

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

    • @ndonkoHenri
      @ndonkoHenri  5 місяців тому +1

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

  • @ayeikh1867
    @ayeikh1867 9 місяців тому +1

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

    • @ndonkoHenri
      @ndonkoHenri  9 місяців тому

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

  • @David-tl2de
    @David-tl2de 2 місяці тому +1

    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  2 місяці тому +1

      Open a discussion on the Flet repo.

  • @lucascpd3590
    @lucascpd3590 6 місяців тому +1

    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  6 місяців тому

      Can you open an issue on the Flet repo?

  • @zandorpetrov8901
    @zandorpetrov8901 Місяць тому +1

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

    • @ndonkoHenri
      @ndonkoHenri  Місяць тому

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

  • @kishore7552
    @kishore7552 2 місяці тому +1

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

    • @ndonkoHenri
      @ndonkoHenri  2 місяці тому

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

  • @codemedio6418
    @codemedio6418 Місяць тому +1

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

    • @ndonkoHenri
      @ndonkoHenri  Місяць тому +1

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

  • @patsadelon8241
    @patsadelon8241 4 місяці тому +3

    Greaaaaat

  • @tct123-private
    @tct123-private 9 місяців тому +1

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

    • @ndonkoHenri
      @ndonkoHenri  8 місяців тому +1

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

  • @jolsenekols
    @jolsenekols Місяць тому +1

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

  • @DANIELSILVA-ud4nk
    @DANIELSILVA-ud4nk 4 місяці тому +1

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

    • @ndonkoHenri
      @ndonkoHenri  4 місяці тому

      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: ua-cam.com/video/ObO-D2TD_wo/v-deo.html
      You will find it useful.

  • @MengistAbyssinia
    @MengistAbyssinia 8 місяців тому +1

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

    • @ndonkoHenri
      @ndonkoHenri  8 місяців тому

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

  • @misteranonymous1157
    @misteranonymous1157 2 місяці тому +1

    How to change the app icon and app name

    • @ndonkoHenri
      @ndonkoHenri  2 місяці тому

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

  • @globalassemblage
    @globalassemblage 8 місяців тому +1

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

    • @ndonkoHenri
      @ndonkoHenri  8 місяців тому

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

  • @burakkaanboyuk
    @burakkaanboyuk 3 місяці тому +1

    what is code editor name, is it vscode

  • @xulzayroix5974
    @xulzayroix5974 8 місяців тому +2

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

    • @ndonkoHenri
      @ndonkoHenri  8 місяців тому +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 7 місяців тому

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

    • @ndonkoHenri
      @ndonkoHenri  7 місяців тому

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

  • @S-Lomar
    @S-Lomar 9 днів тому

    Guys post more videos about app❤❤😂😂😂😂😂😂😂😂❤❤❤❤❤❤😂😂😂

  • @CAMILLEMONKAMDJOMANI
    @CAMILLEMONKAMDJOMANI 9 місяців тому

    Fort bro❤

  • @Satpalsingh20631
    @Satpalsingh20631 7 місяців тому

    How to change logo in flet python apk ?

    • @ndonkoHenri
      @ndonkoHenri  7 місяців тому

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

  • @LoongBerries
    @LoongBerries 7 місяців тому

    does this need a Android sdk?

    • @ndonkoHenri
      @ndonkoHenri  6 місяців тому

      Yep, Flutter requires it.

  • @viewsz
    @viewsz 9 місяців тому +1

    great!

  • @marimon6634
    @marimon6634 4 місяці тому

    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  4 місяці тому

      @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
      ua-cam.com/video/ObO-D2TD_wo/v-deo.html

  • @VerBotWA_Mohamedhelal
    @VerBotWA_Mohamedhelal 8 місяців тому

    hi I'm having a problem in flet build apk

    • @ndonkoHenri
      @ndonkoHenri  8 місяців тому

      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 7 місяців тому +1

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

  • @qudratillosalakhiddinov
    @qudratillosalakhiddinov 9 місяців тому +1

  • @arcelford-qi7vr
    @arcelford-qi7vr 7 місяців тому

    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  7 місяців тому

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

  • @antoniofuller2331
    @antoniofuller2331 8 місяців тому +5

    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  7 місяців тому +2

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

    • @deepakpune1
      @deepakpune1 5 місяців тому

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

    • @ndonkoHenri
      @ndonkoHenri  5 місяців тому +1

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

    • @deepakpune1
      @deepakpune1 5 місяців тому +1

      @@ndonkoHenri awesome thanks, will try it

    • @newstodayyt1
      @newstodayyt1 4 місяці тому +1

      This is amazing some of us want to use python

  • @ndonkoHenri
    @ndonkoHenri  9 місяців тому +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 🙂: ua-cam.com/video/CLzKZlv1IAA/v-deo.html