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

Поділитися
Вставка
  • Опубліковано 23 бер 2024
  • 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
  • Наука та технологія

КОМЕНТАРІ • 43

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

    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

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

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

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

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

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

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

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

    Great work bro 👊🏾

  • @eiji1136
    @eiji1136 19 днів тому +3

    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

  • @user-ed3re8nq7f
    @user-ed3re8nq7f 2 місяці тому

    Fort bro❤

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

    great!

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

  • @fasilwandoor532
    @fasilwandoor532 2 місяці тому +3

    Why a simple app size becomes 84 MB ??

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

      We are working on optimizing this.

  • @LoongBerries
    @LoongBerries 17 днів тому

    does this need a Android sdk?

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

    Nice video man! Thank you for this simple tutorial.

  • @user-mr1bi7tr5l
    @user-mr1bi7tr5l 20 днів тому

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

    • @ndonkoHenri
      @ndonkoHenri  20 днів тому

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

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

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

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

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

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

    when i run flet build apk show this error
    {Because myapp depends on flutter_test from sdk which doesn't exist (the Flutter SDK is not available), version
    solving failed.
    Flutter users should use `flutter pub` instead of `dart pub`.
    Error building Flet app - see the log of failed command above.}
    but i alredy work with flutter and i have sdk what i can do?

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

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

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

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

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

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

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

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

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

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

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

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

  • @user-pi7ck6wn9k
    @user-pi7ck6wn9k 17 днів тому

    How to change logo in flet python apk ?

    • @ndonkoHenri
      @ndonkoHenri  16 днів тому

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

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

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

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

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

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

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

    • @ndonkoHenri
      @ndonkoHenri  Місяць тому +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 28 днів тому

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

    • @ndonkoHenri
      @ndonkoHenri  28 днів тому

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

  • @arcelford-qi7vr
    @arcelford-qi7vr 28 днів тому

    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  27 днів тому

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

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

    hi I'm having a problem in flet build apk

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

      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 19 днів тому

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

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

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

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