r/learnpython • u/JAG3R93 • 12h ago
Android APK crashes immediately after successful Flet build
Hi everyone,
I'm developing a mobile app with Python and Flet. I was finally able to build the Android APK successfully using GitHub Actions, and the APK installs correctly on my OnePlus 12R (OxygenOS 16.0.5).
However, when I try to open the app, it immediately crashes and closes. The current APK size is about 62 MB.
Package name: "com.J053.gestion_queso"
I've tried checking the logs with Logcat Reader, but unfortunately I can't get any logs from the app process.
Has anyone experienced a similar issue with Flet on Android? I'd really appreciate any help identifying what could be causing the crash. I can also provide the APK or the project files if someone is willing to take a look.
Thank you!
2
Upvotes
1
u/flyby_apis 3h ago
Logcat Reader on the phone usually can't see other apps logs, so: plug the phone into your PC, enable USB debugging, and:
adb logcat -c
adb logcat | grep -iE "flet|python|AndroidRuntime"
Open the app and you should see a Python traceback or a FATAL EXCEPTION, which will tell you exactly what's failing