Skip to content

Android Gradle Plug-in 8.13 requires compile SDK >=34 #9

Description

@RemcodM

Flutter builds with plug-in com.android.application >= 8.13.0 will fail if the keep_screen_on pub is installed because of the hardcoded compileSdk set to 33:

For the new version of the plug-in, a minimum compileSdk of 34 is required.

The following kind of errors are observed when upgrading to 8.13.0:

Dependency 'androidx.fragment:fragment:1.7.1' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.
:keep_screen_on is currently compiled against android-33.
Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 36.
Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).

Please note that this happens for a large number of androidx.* related libraries, not specifically androidx.fragment:fragment:1.7.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions