Skip to content

bug: Application crashes (only Android 8.1 and below and flet 0.81.0 and later) #6619

Description

@r58uoi

Duplicate Check

Describe the bug

When I create an application using flet for Android and install modern smartphones or tablets, but I know that it is possible to install at least Android 7. I tried to install an application of older Android versions, but I saw that Android 8.1 and older versions cause the application to crash.

But... I experimented and found out that flet version 0.80.5 and older versions do not crash the application. When the flet 0.81.0 update was released, the app started to fail in older versions of Android.

I do not know, maybe this is not a bug, or android is outdated? I think flet 0.81.0 and later versions do not support older Android versions.

Code sample

Code
[Paste your code here]
import flet as ft


def main(page: ft.Page):
    counter = ft.Text("0", size=50, data=0)

    def increment_click(e):
        counter.data += 1
        counter.value = str(counter.data)

    page.floating_action_button = ft.FloatingActionButton(
        icon=ft.Icons.ADD, on_click=increment_click
    )
    page.add(
        ft.SafeArea(
            expand=True,
            content=ft.Container(
                content=counter,
                alignment=ft.Alignment.CENTER,
            ),
        )
    )


ft.run(main)

To reproduce

1.Create a project: flet create myapp
2.Build an apk project: flet build apk myapp
3.Install the app using Android 8.1 and older versions (via android studio or an old phone that costs Android 8.1 and older)
4.Now, open the app

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Screen_recording_20260626_235606.mp4

Operating System

Windows

Operating system details

10 Pro

Flet version

0.85.3

Regression

Yes, it used to work in a previous Flet version (please specify the version in additional details)

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions