Skip to content

[geocoding_android]: Update example to Gradle 9.9.2 and AGP 9.1.1 - #342

Draft
rickdijk wants to merge 1 commit into
mainfrom
rick/fpl-58-geocoding-android-example-gradle
Draft

rickdijk wants to merge 1 commit into
mainfrom
rick/fpl-58-geocoding-android-example-gradle

Conversation

@rickdijk

@rickdijk rickdijk commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Updates the geocoding_android example app's Android build so it builds on the latest Flutter stable (3.50.1, the version CI installs). Same fix as #341 for the geocoding example.

  • Gradle wrapper 9.1.0 → 9.9.2.
  • Android Gradle Plugin 9.0.1 → 9.1.1.
  • geocoding_android version 5.1.0 → 5.1.1, CHANGELOG entry added (the example ships with the package).

Flutter 3.50.1 rejects Gradle below 9.3.1 and AGP below 9.1.1, so the android CI job fails on any geocoding_android PR (e.g. dependabot #335, #336). The plugin's own android/ build (Gradle 9.8.0, bumped by #335) is not touched.

Linear: FPL-58

Verification

flutter build apk --release in geocoding_android/example:

Flutter Result
3.50.1 (current stable, CI) ✅ Built app-release.apk
3.44.9 (FPL-48 floor) ✅ Built app-release.apk

Flutter 3.50.1 also prints two non-blocking warnings: AGP 9.1.1 support "will soon be dropped" (recommends ≥ 9.3.1), and Kotlin 2.4.10 support "will soon be dropped" (recommends ≥ 2.4.20; the plugin's Kotlin bump is #328).

CI note: android fails on flutter analyze, not caused by this PR

Format passes and the job now gets past dependency resolution. It stops at flutter analyze with one info:

info • 'package:flutter/material.dart' is deprecated ... Use package:material_ui/material_ui.dart instead • deprecated_member_use

The material.dart import is in the example app on main too. Flutter 3.50.1 deprecates it, and #339 and other open PRs fail on the same info. Migrating to material_ui is a separate decision, so it is left out here. Because analyze fails first, CI never reaches the example APK build. That build passes locally on 3.50.1 (see above).

🤖 Generated with Claude Code

Flutter 3.50 refuses to build Android apps with Gradle below 9.3.1 or
AGP below 9.1.1, which breaks the android CI job on the latest stable.

Linear: FPL-58

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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