Description
"I am trying to download and run the project, but I am encountering the following error. Is there a way to resolve it?"
Feel free to provide the error message, and I can help guide you through the solution!
ERROR MESSAGE
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.
where: example\android\app\build.gradle' line: 40
- What went wrong:
A problem occurred evaluating project ':app'.
Could not get unknown property 'flutter' for extension 'android' of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension.
- Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
- Get more help at https://help.gradle.org
BUILD FAILED in 1s
Error: Gradle task assembleDebug failed with exit code 1