r/learnpython • • Oct 07 '26

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

6 comments sorted by

View all comments

Show parent comment

2

u/OddsRelay Oct 07 '26

Once logcat is running watch for ModuleNotFoundError or an error loading a .so file. It usually means one of the packages compiled with no android build. Pure python packages are fine so check the others against flets list of packages for mobile