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
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
Pas mal labas 💪🏽💪🏽 Je regarde rarement les vidéos ci jusqu’au bout 😂
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
4 ай бұрын
We are working on a guide for that. Flet is really awesome and easy to learn, isn’t it? :)
@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.
when I run flet build apk, this error appears "OSError: [WinError 193] %1 is not a valid Win32 app"
@Yuriss363
Ай бұрын
I have the same problem
@bestquizMLBB
Ай бұрын
Same, have you found a solution?
@ndonkoHenri
Ай бұрын
Sorry for that. I suggest you open a discussion or issue on the Flet repo with details to this problem.
Nice video man! Thank you for this simple tutorial.
Great work bro 👊🏾
@ndonkoHenri
4 ай бұрын
Thanks bro ❤️
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
27 күн бұрын
Can you open an issue on the Flet repo?
Nice, and what if I have an .kv file to feed my main.py project?
@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. 😅
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
Ай бұрын
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.
Hi, I created the apk, but when I launch it, it doesn't show anything, what could have happened?
@ndonkoHenri
21 күн бұрын
Strange. Can you please open an issue on the Flet repo with all the details?
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
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.
Fort bro❤
fantastic video! It will be great to see like a noteapp with fastapi to see how flet endpoints work..
great!
@ndonkoHenri
4 ай бұрын
Thanks! 🙂
After installing on my android app, it sometimes stops working, what do you think is the cause?
@ndonkoHenri
3 ай бұрын
That’s strange. Will you mind opening an issue on the Flet repo with all the details?
Sir how can i change the app logo icon??
@ndonkoHenri
7 күн бұрын
It is mentioned in the documentation: flet.dev/docs/publish#icons
Why a simple app size becomes 84 MB ??
@ndonkoHenri
3 ай бұрын
We are working on optimizing this.
@ABHISHEKSINGH-jy1cn
17 күн бұрын
@@ndonkoHenri Did you make it smaller
@ndonkoHenri
16 күн бұрын
@@ABHISHEKSINGH-jy1cn flet.dev/docs/publish/android#building-platform-specific-apk
Can you explain to us in the next video how can we build apk when we use library as numpy ?
@ndonkoHenri
4 ай бұрын
Thanks for your suggestion! Will find some time to talk on that.
When we use any external package like mysql.connector then after apk build it shows error kindly suggest solution
@ndonkoHenri
3 ай бұрын
Please can you share the error you received in an issue on the Flet repo: github.com/flet-dev/flet/issues
⭐
Can you maybe show, how to upload this to play store (etc.)?
@ndonkoHenri
3 ай бұрын
We are working on a full guide on this. Stay tuned!
How to change logo in flet python apk ?
@ndonkoHenri
2 ай бұрын
It is mentioned in our documentation: flet.dev/docs/publish#icons
'flutter' command is not available in PATH. Install flutter SDK
@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
2 ай бұрын
@@ndonkoHenri i have a the same issue can you be more specific to your answer. Thanks!
@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.
does this need a Android sdk?
@ndonkoHenri
Ай бұрын
Yep, Flutter requires it.
hi I'm having a problem in flet build apk
@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
2 ай бұрын
Run using flet build apk --verbose to see the details of your error.
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
2 ай бұрын
Please open an issue on the Flet repo: github.com/flet-dev/flet/issues/ Let’s continue the discussion from there.
84MB lol. We're better off doing Java/Kotlin/flutter/dart the hard way. Python just take shortcuts to do very little lol
@ndonkoHenri
2 ай бұрын
Understandable! - Feel free to go with what best suits your needs. However, we are working on optimizing the application size.
@deepakpune1
23 күн бұрын
@@ndonkoHenri waiting for it. 100mb size is too much :)
@ndonkoHenri
16 күн бұрын
@@deepakpune1 flet.dev/docs/publish/android#building-platform-specific-apk
@deepakpune1
16 күн бұрын
@@ndonkoHenri awesome thanks, will try it