Skip to content

The module template triggers a warning when built #159729

@mit-mit

Description

@mit-mit

Repro steps:

  1. Create a new module: flutter create -t module mymodule

  2. Run it: cd mymodule; flutter run -d [some android target]

Expected result: Runs with no warnings or errors

Actual result:

Launching lib/main.dart on sdk gphone16k arm64 in debug mode...
You are applying Flutter's main Gradle plugin imperatively using the apply script method,
which is deprecated and will be removed in a future release. 
Migrate to applying Gradle plugins with the declarative plugins block:
https://flutter.dev/to/flutter-gradle-plugin-apply

✓ Built build/host/outputs/apk/debug/app-debug.apk

Version info:

mit-macbookpro7:flumod mit$ flutter --version
Flutter 3.27.0-1.0.pre.665 • channel master • https://github.com/flutter/flutter.git
Framework • revision 7453ffd22d (5 days ago) • 2024-11-28 14:08:55 +0100
Engine • revision d7c0bcfe7a
Tools • Dart 3.7.0 (build 3.7.0-188.0.dev) • DevTools 2.41.0-dev.2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions