Skip to content

Gradle version mistmatch in Flutter Gradle plugin #105040

Closed

Description

@blasten

flutter.gradle sets the AGP version to 4.1.0 in

classpath 'com.android.tools.build:gradle:4.1.0'
whereas the app projects use AGP version 7.1.2 in
const String templateAndroidGradlePluginVersion = '7.1.2';

It's also worth investigating why this AGP version needs to be set in flutter.gradle.

Activity

  1. added
    platform-androidAndroid applications specifically
    toolAffects the "flutter" command-line tool. See also t: labels.
    t: gradle"flutter build" and "flutter run" on Android
    P1High-priority issues at the top of the work list
    on May 31, 2022
  2. christopherfujino commented on Jul 26, 2022

    @christopherfujino
    Contributor

    @GaryQian will #108355 fix this?

  3. GaryQian commented on Jul 26, 2022

    @GaryQian
    Contributor

    It does not directly address this. Ill have to investigate what flutter.gradle is doing specifically

  4. GaryQian commented on Aug 19, 2022

    @GaryQian
    Contributor

    The flutter.gradle AGP has been updated and seems stable. Closing.

  5. github-actions commented on Sep 2, 2022

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  6. locked as resolved and limited conversation to collaborators on Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listplatform-androidAndroid applications specificallyt: 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