Skip to content

Set an explicit Gradle, AGP, and Android Studio policy enforced by flutter tooling  #125653

@reidbaker

Description

@reidbaker

Android Studio flamingo created a number of fires for flutter engineering.
Some covering gradle 8 support, AGP 8.0 support and Java 17 support.

In many ways flutter does not control compatibility or interoperability between dependencies required to build android apps. Flutter should document the supported version and enforce those as part of flutter build/run in addition to exposing them in flutter doctor or similar command.

This is not unlike what iOS does

here's an example

if (!_xcode.isInstalledAndMeetsVersionCheck) {

that shows it in doctor
this is the code that's checked when we go to build the project, and bails early with an error if the version isn't high enough
bool _checkXcodeVersion() {

used here
if (!_checkXcodeVersion()) {
return XcodeBuildResult(success: false);
}

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listd: api docsIssues with https://api.flutter.dev/platform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions