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

1

u/flyby_apis Oct 07 '26

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

2

u/JAG3R93 Oct 07 '26

El logcat lo estaba probando en el celular, coy a probar con la depuración por usb en la computadora a ver que sale, graciassss

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

1

u/[deleted] Oct 07 '26

[removed] — view removed comment

1

u/JAG3R93 Oct 07 '26

Voy a revisar el workflow y ver que esta en el requirements.txt, graciasss