Skip to content

[flutter_tools] Support for Android Gradle Plugin 7.0.0 #87649

@TahaTesser

Description

@TahaTesser

As Android Gradle Plugin 7.0.0 released

Steps to reproduce

  1. Execute flutter create myapp
  2. Locate myapp/android and delete gradle distribution folder
  3. Update Android Gradle Plugin myapp/android/build.gradle to 7.0.0
  4. Execute flutter run -v from the root directory of myapp.

Actual Results:

Flutter doesn't support this version and throws the following exception: (using 7.0.2 default version)

[  +33 ms] Building APK
[  +40 ms] Running Gradle task 'assembleDebug'...
[  +15 ms] LocalFile: 'C:\Users\Taha\StudioProjects\triage-companion\android\build.gradle' provides AGP version: 7.0.0
[+9740 ms] Exception: Unsupported Android Plugin version: 7.0.0.
[   +2 ms] "flutter run" took 17,921ms.

The Source of this exception is here

Expected Results:

The app runs with updated AGP and Gradle distribution is downloaded

Metadata

Metadata

Assignees

Labels

c: proposalA detailed proposal for a change to Flutterplatform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versiont: gradle"flutter build" and "flutter run" on AndroidtoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions