Skip to content

[Android] compileSdk 35 causes build failure when app uses API 36 #1130

@SholaWilliams

Description

@SholaWilliams

Description

When a Flutter app sets compileSdk = 36, the build fails with:

Dependency ':flutter_plugin_android_lifecycle' requires compiling against API 36, but :mapbox_maps_flutter is compiled against 35.

Steps to reproduce

  1. Create a Flutter app with compileSdk = 36 in android/app/build.gradle
  2. Add mapbox_maps_flutter as a dependency
  3. Run flutter build apk

Expected behavior

The plugin should compile against API 36 without error.

Actual behavior

Build fails due to AAR metadata check.

Proposed fix

Bump compileSdk from 35 to 36 in the plugin's android/build.gradle. The example app already uses 36.

Additional context

compileSdk is build‑time only – no runtime impact. This mirrors the maintainers' previous bump from 33 to 35 in version 2.17.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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