Skip to content

chore(example): update Android build to Gradle 9.9.2 and AGP 9.3.1 - #1070

Merged
rickdijk merged 1 commit into
mainfrom
rick/cni-example-gradle-9-9
Dec 2, 2026
Merged

rickdijk merged 1 commit into
mainfrom
rick/cni-example-gradle-9-9

Conversation

@rickdijk

@rickdijk rickdijk commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)

Build fix for the example app (maintenance).

⤵️ What is the current behavior?

On Flutter stable (3.50.1), the "Build Android App" job fails on main and on every open PR: "Your project's Gradle version (9.1.0) is lower than Flutter's minimum supported version of 9.3.1".

🆕 What is the new behavior (if this is a feature change)?

The example uses Gradle 9.9.2 and AGP 9.3.1, the AGP version Flutter 3.50.1 recommends, and builds again. The package version goes to 4.1.1 with a CHANGELOG entry, because 4.1.0 is already tagged.

💥 Does this PR introduce a breaking change?

No

🐛 Recommendations for testing

  • flutter build apk --release in the example succeeds on 3.50.1. flutter analyze and flutter test for cached_network_image pass on 3.50.1.
  • The build warns that Kotlin 2.4.10 support "will soon be dropped" (Flutter wants 2.4.20 or newer). It is a warning only, so the Kotlin plugin is unchanged here.
  • These checks could not run on 3.44.9. material_ui ^1.3.0 needs Dart 3.13, so pub get fails there, and it fails the same way on main. The pubspec floor flutter: '>=3.44.0' is out of date. That needs its own fix and is not part of this PR.
  • On CI, check that "Build Android App" passes.

📝 Links to relevant issues/docs

Same fix as Baseflow/flutter-geocoding#341. Linear FPL-48 / FPL-60.

🤔 Checklist before submitting

  • All projects build
  • Follows style guide lines (code style guide)
  • Relevant documentation was updated
  • Rebased onto current main

🤖 Generated with Claude Code

Flutter 3.50 requires Gradle 9.3.1 or newer, so the example's Android
build failed on stable with Gradle 9.1.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rickdijk
rickdijk requested a review from mvanbeusekom December 1, 2026 06:44
@rickdijk
rickdijk merged commit 882b91b into main Dec 2, 2026
10 checks passed
@rickdijk
rickdijk deleted the rick/cni-example-gradle-9-9 branch December 2, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant