Skip to content

I am trying to download and run the project, but I am encountering the following error.  #216

@WORLD8848

Description

@WORLD8848

"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.

BUILD FAILED in 1s
Error: Gradle task assembleDebug failed with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions