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

Ғылым және технология

In this video, you will learn step-by-step how to convert your Flet application written in Python to an Android APK file, and also how to test the resulting app directly on a Virtual Device (Android Mobile Emulator).
Watch-next (personal recommendation):
- • Test Your Flet Apps on...
- • Python Code to Static ...
More about Flet:
- Website: flet.dev
- GitHub: github.com/flet-dev/flet
- Discord Server: / discord
Checkout my social profiles:
- LinkTree: linktr.ee/ndonkohenri
- GitHub: github.com/ndonkoHenri
- Medium: / ndonkohenri
- LinkedIn: / ndonkohenri
- Discord Username: the_ethical_boy
If you enjoyed the content of this video, please like the video and subscribe to my channel, if you haven't already! 😇
Made by Henri Ndonko aka TheEthicalBoy - Active Flet Contributor and Maintainer
#flet #python #apk #androidemulator #android #flutter

Пікірлер: 60

  • @ndonkoHenri
    @ndonkoHenri4 ай бұрын

    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 🙂: kzread.info/dash/bejne/dYCurbylppSvcaQ.html

  • @peterstarboy9533
    @peterstarboy95334 ай бұрын

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

  • @scoobyisadog
    @scoobyisadog4 ай бұрын

    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

    4 ай бұрын

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

  • @scoobyisadog

    @scoobyisadog

    3 ай бұрын

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

  • @eiji1136
    @eiji11362 ай бұрын

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

  • @Yuriss363

    @Yuriss363

    Ай бұрын

    I have the same problem

  • @bestquizMLBB

    @bestquizMLBB

    Ай бұрын

    Same, have you found a solution?

  • @ndonkoHenri

    @ndonkoHenri

    Ай бұрын

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

  • @max_unch
    @max_unch3 ай бұрын

    Nice video man! Thank you for this simple tutorial.

  • @Frank-qg3ie
    @Frank-qg3ie4 ай бұрын

    Great work bro 👊🏾

  • @ndonkoHenri

    @ndonkoHenri

    4 ай бұрын

    Thanks bro ❤️

  • @lucascpd3590
    @lucascpd3590Ай бұрын

    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

    27 күн бұрын

    Can you open an issue on the Flet repo?

  • @user-mr1bi7tr5l
    @user-mr1bi7tr5l2 ай бұрын

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

  • @ndonkoHenri

    @ndonkoHenri

    2 ай бұрын

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

  • @user-qe6ye6lc5q
    @user-qe6ye6lc5qАй бұрын

    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

    Ай бұрын

    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.

  • @fellipelopessilva6982
    @fellipelopessilva698221 күн бұрын

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

  • @ndonkoHenri

    @ndonkoHenri

    21 күн бұрын

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

  • @QuransGems-zd1jd
    @QuransGems-zd1jd2 күн бұрын

    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

    20 сағат бұрын

    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.

  • @user-ed3re8nq7f
    @user-ed3re8nq7f4 ай бұрын

    Fort bro❤

  • @fabsync
    @fabsync3 ай бұрын

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

  • @viewsz
    @viewsz4 ай бұрын

    great!

  • @ndonkoHenri

    @ndonkoHenri

    4 ай бұрын

    Thanks! 🙂

  • @MengistAbyssinia
    @MengistAbyssinia3 ай бұрын

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

  • @ndonkoHenri

    @ndonkoHenri

    3 ай бұрын

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

  • @mrRohan886
    @mrRohan8869 күн бұрын

    Sir how can i change the app logo icon??

  • @ndonkoHenri

    @ndonkoHenri

    7 күн бұрын

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

  • @fasilwandoor532
    @fasilwandoor5323 ай бұрын

    Why a simple app size becomes 84 MB ??

  • @ndonkoHenri

    @ndonkoHenri

    3 ай бұрын

    We are working on optimizing this.

  • @ABHISHEKSINGH-jy1cn

    @ABHISHEKSINGH-jy1cn

    17 күн бұрын

    ​@@ndonkoHenri Did you make it smaller

  • @ndonkoHenri

    @ndonkoHenri

    16 күн бұрын

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

  • @ayeikh1867
    @ayeikh18674 ай бұрын

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

  • @ndonkoHenri

    @ndonkoHenri

    4 ай бұрын

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

  • @globalassemblage
    @globalassemblage3 ай бұрын

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

  • @ndonkoHenri

    @ndonkoHenri

    3 ай бұрын

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

  • @qudratillosalakhiddinov
    @qudratillosalakhiddinov4 ай бұрын

  • @tct123
    @tct1234 ай бұрын

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

  • @ndonkoHenri

    @ndonkoHenri

    3 ай бұрын

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

  • @Satpalsingh20631
    @Satpalsingh206312 ай бұрын

    How to change logo in flet python apk ?

  • @ndonkoHenri

    @ndonkoHenri

    2 ай бұрын

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

  • @xulzayroix5974
    @xulzayroix59742 ай бұрын

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

  • @ndonkoHenri

    @ndonkoHenri

    2 ай бұрын

    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

    2 ай бұрын

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

  • @ndonkoHenri

    @ndonkoHenri

    2 ай бұрын

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

  • @LoongBerries
    @LoongBerries2 ай бұрын

    does this need a Android sdk?

  • @ndonkoHenri

    @ndonkoHenri

    Ай бұрын

    Yep, Flutter requires it.

  • @VerBotWA_Mohamedhelal
    @VerBotWA_Mohamedhelal3 ай бұрын

    hi I'm having a problem in flet build apk

  • @ndonkoHenri

    @ndonkoHenri

    3 ай бұрын

    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

    2 ай бұрын

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

  • @arcelford-qi7vr
    @arcelford-qi7vr2 ай бұрын

    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

    2 ай бұрын

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

  • @antoniofuller2331
    @antoniofuller23312 ай бұрын

    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

    2 ай бұрын

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

  • @deepakpune1

    @deepakpune1

    23 күн бұрын

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

  • @ndonkoHenri

    @ndonkoHenri

    16 күн бұрын

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

  • @deepakpune1

    @deepakpune1

    16 күн бұрын

    @@ndonkoHenri awesome thanks, will try it

Келесі