Countly / Countly/countly-sdk-flutter-bridge
countly_flutter 26.1.1 fails to build when compileSdk 36
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 33
- Forks
- 20
- Avg merge
- 5m
- Merged PRs (30d)
- 4
Description
Hi,
After updating our Flutter app dependencies, Android builds fail in the countly_flutter module:
Execution failed for task ':countly_flutter:checkDebugAarMetadata'.
Dependency ':flutter_plugin_android_lifecycle' requires libraries and applications that depend on it to compile against version 36 or later of the Android APIs.
:countly_flutter is currently compiled against android-35.
The app itself is already using compileSdk 37, but countly_flutter hardcodes compileSdk 35 in android/build.gradle.
countly_flutter depends on flutter_plugin_android_lifecycle: ^2.0.2, which resolves to a version requiring API 36 or newer. This makes the plugin fail during AAR metadata validation.
Would it be possible to update the plugin's compileSdk to at least 36? Using flutter.compileSdkVersion, as the example app already does, would also prevent this from getting out of sync again.
Thanks!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with android/build.gradle, where countly_flutter currently hardcodes compileSdk 35, and compare it with the example app's use of flutter.compileSdkVersion. Update the plugin's compile SDK to meet the dependency requirement, then verify that the Android build no longer fails during AAR metadata validation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, dart, flutter
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 85/100