Custom splash screen and icon not showing in Flet Android build


I am building an Android application using the Flet framework in Python. I am trying to customize the splash screen logo and the app icon, but after building the APK, the app still shows the default Flet logo for both the splash screen and the icon.

I have tried using AI assistants to debug the issue, but the suggestions provided haven't worked so far. I am concerned if there are specific requirements for the .png format or if there are certain limitations in the Flet build process regarding asset support.

My environment:

  • Framework: Flet (Python)

  • Target: Android (APK)

  • Build Tool: flet build apk

What I have tried:

  1. Placing the logo in the assets folder.

  2. Checking if the file path is correct in my code/configuration.

  3. Verifying the .png file is not corrupted.

My Question: What is the correct way to specify a custom logo for the splash screen and the app icon when building a Flet app for Android? Are there specific file naming conventions or directory structures I should follow?

1
May 1 at 9:34 AM
User AvatarKushner Akiva
#android#apk#flet

No answer found for this question yet.