Skip to content

AndroidView requires api level 23 or greater since Flutter 3.0 without any breaking change warnings #105882

@FrantisekGazo

Description

@FrantisekGazo

Steps to Reproduce

After I upgraded Flutter sdk from 2.10 to 3.0 I started getting logs like this in runtime:

Platform views cannot be displayed below API level 23. You can prevent this issue by setting 'minSdkVersion: 23' in build.gradle.

AndroidView had previously min api level 20, but was changed to 23 in this PR.

Can you please provide a way to use platform views without forcing min api level 23+?

Expected results:
Min supported api level should not be incremented without any warnings in release notes.

Actual results:
I didn't find any mentions of it in release notes. Nor how to handle it besides incrementing min api level.
It's a major breaking change and in our case we need to use platform views but have to stay with min api 21.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: platform-viewsEmbedding Android/iOS views in Flutter appsc: API breakBackwards-incompatible API changesc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.platform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionwaiting for PR to land (fixed)A fix is in flight

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions