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 - Наука та технологія
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
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).
We are working on a guide for that. Flet is really awesome and easy to learn, isn’t it? :)
@@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.
Great work bro 👊🏾
Thanks bro ❤️
when I run flet build apk, this error appears "OSError: [WinError 193] %1 is not a valid Win32 app"
I have the same problem
Fort bro❤
great!
Thanks! 🙂
⭐
Why a simple app size becomes 84 MB ??
We are working on optimizing this.
does this need a Android sdk?
Nice video man! Thank you for this simple tutorial.
Nice, and what if I have an .kv file to feed my main.py project?
.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. 😅
Can you explain to us in the next video how can we build apk when we use library as numpy ?
Thanks for your suggestion!
Will find some time to talk on that.
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?
Sorry for that! Please open an issue on the Flet repo: github.com/flet-dev/flet/issues
Let’s continue the discussion from there.
fantastic video! It will be great to see like a noteapp with fastapi to see how flet endpoints work..
After installing on my android app, it sometimes stops working, what do you think is the cause?
That’s strange. Will you mind opening an issue on the Flet repo with all the details?
Can you maybe show, how to upload this to play store (etc.)?
We are working on a full guide on this. Stay tuned!
How to change logo in flet python apk ?
It is mentioned in our documentation: flet.dev/docs/publish#icons
When we use any external package like mysql.connector then after apk build it shows error kindly suggest solution
Please can you share the error you received in an issue on the Flet repo: github.com/flet-dev/flet/issues
'flutter' command is not available in PATH. Install flutter SDK
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
@@ndonkoHenri i have a the same issue can you be more specific to your answer. Thanks!
Please open an issue on the Flet repo: github.com/flet-dev/flet/issues/new/choose
Let's continue the discussion from there.
BUILD FAILED in 5m 26s
Gradle task assembleRelease failed with exit code 1
Error building Flet app - see the log of failed command above.
Please open an issue on the Flet repo: github.com/flet-dev/flet/issues/
Let’s continue the discussion from there.
hi I'm having a problem in flet build apk
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
Run using flet build apk --verbose to see the details of your error.
84MB lol. We're better off doing Java/Kotlin/flutter/dart the hard way. Python just take shortcuts to do very little lol
Understandable! - Feel free to go with what best suits your needs.
However, we are working on optimizing the application size.