This issue reports a warning encountered when trying to run a Flutter application that uses plugins. The warning message indicates the deprecated usage of the apply script method for applying Gradle plugins.
Expected Behavior:
Gradle plugins should be applied using the declarative plugins block according to Flutter's best practices.
Actual Behavior:
The following warning message is displayed during application execution:
You are applying Flutter's app_plugin_loader 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/go/flutter-gradle-plugin-apply
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/go/flutter-gradle-plugin-apply
Steps to Reproduce:
Open a Flutter project that uses plugins.
Try to run the application (e.g., flutter run).
This issue reports a warning encountered when trying to run a Flutter application that uses plugins. The warning message indicates the deprecated usage of the apply script method for applying Gradle plugins.
Expected Behavior:
Gradle plugins should be applied using the declarative plugins block according to Flutter's best practices.
Actual Behavior:
The following warning message is displayed during application execution:
Steps to Reproduce:
Open a Flutter project that uses plugins. Try to run the application (e.g., flutter run).
References:
https://docs.flutter.dev/release/breaking-changes/flutter-gradle-plugin-apply