After Upgrading the Flutter version to 3.19.0
I am getting this warning when running the app:
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
How to remove these deprecated gradle settings.
First easy way to update it is to delete the android directory of your flutter project and run the following command in your flutter repository
another way is to follow the steps given in the official documentation here which was little bit confusing for me for the first time. be careful while following the guide otherwise you might get into trouble.