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
- Create a Flutter app with
compileSdk = 36 in android/app/build.gradle
- Add
mapbox_maps_flutter as a dependency
- 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.
Description
When a Flutter app sets
compileSdk = 36, the build fails with:Steps to reproduce
compileSdk = 36inandroid/app/build.gradlemapbox_maps_flutteras a dependencyflutter build apkExpected behavior
The plugin should compile against API 36 without error.
Actual behavior
Build fails due to AAR metadata check.
Proposed fix
Bump
compileSdkfrom 35 to 36 in the plugin'sandroid/build.gradle. The example app already uses 36.Additional context
compileSdkis build‑time only – no runtime impact. This mirrors the maintainers' previous bump from 33 to 35 in version 2.17.0.