Skip to content

The Flutter Gradle plugin's configureLegacyPluginEachProjects function problem #155484

@goosetapa

Description

@goosetapa

https://github.com/flutter/flutter/blob/2f149da67614349cb60bc77b465ce6a533aa951e/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy#L689%EC%97%90%EC%84%9C

The Flutter Gradle plugin's configureLegacyPluginEachProjects Groovy code is detecting the text content of the existing settings.gradle file, regardless of whether it is in comments or the main body.

Even if I comment out the '.flutter-plugins' string in the settings.gradle file, the Flutter Gradle plugin still recognizes that it is using the legacy settings.gradle configuration method.

As a result, during flutter build apk or flutter run command, it outputs error logs saying, "Plugin project : listed, but not found. Please fix your settings.gradle/settings.gradle.kts."

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listplatform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versiont: gradle"flutter build" and "flutter run" on Androidteam-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