Update example Android build for Flutter 3.44#510
Merged
Conversation
Update Gradle, AGP, Kotlin, and Java so the example app can build with the current Flutter SDK. Co-authored-by: Cursor <cursoragent@cursor.com>
Remove the Kotlin Gradle Plugin and use AGP's kotlin.compilerOptions DSL per Flutter's migration guide. Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Pull request overview
Updates the example Android project’s build tooling to align with Flutter 3.44 expectations and remove reliance on the legacy Kotlin Gradle Plugin setup.
Changes:
- Bumped Android toolchain versions (AGP/Kotlin) and updated the Gradle wrapper.
- Updated the example app module to Java 17 and configured Kotlin via the new
kotlin { compilerOptions { ... } }DSL (removingkotlin-androidplugin usage). - Added Flutter migration compatibility flags to
gradle.properties.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| flutter_cache_manager/example/android/settings.gradle | Updates plugin versions for AGP and Kotlin used by the example Android build. |
| flutter_cache_manager/example/android/gradle/wrapper/gradle-wrapper.properties | Updates Gradle wrapper distribution to a newer Gradle version. |
| flutter_cache_manager/example/android/gradle.properties | Adds Flutter migration compatibility flags controlling built-in Kotlin/new DSL behavior. |
| flutter_cache_manager/example/android/app/build.gradle | Removes legacy Kotlin plugin usage, sets Java 17 compatibility, and configures Kotlin compiler options via the new DSL. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
mvanbeusekom
approved these changes
Jul 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)
Chore / build tooling update for the example Android app.
The example Android project uses an outdated toolchain (Gradle 7.6.3, AGP 7.3.0, Kotlin 1.7.10, Java 8). Building with Flutter 3.44 fails with:
Language version 1.4 is no longer supported; please, use version 1.8 or greater.The example also still applies the Kotlin Gradle Plugin (
kotlin-android), which Flutter warns will break in a future release.🆕 What is the new behavior (if this is a feature change)?
kotlin.compilerOptions) per Flutter’s migration guideandroid.builtInKotlin=false,android.newDsl=false) ingradle.properties💥 Does this PR introduce a breaking change?
No. Changes are limited to the example Android project.
🐛 Recommendations for testing
flutter_cache_manager/example, runflutter build apk --release📝 Links to relevant issues/docs
🤔 Checklist before submitting