Launching lib\main.dart on CPH2487 in debug mode... Running Gradle task 'assembleDebug'... FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':gradle:jar'. > Entry FlutterPlugin.class is a duplicate but no duplicate h

Launching lib\main.dart on CPH2487 in debug mode…
Running Gradle task ‘assembleDebug’…

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:gradle:jar’.

Entry FlutterPlugin.class is a duplicate but no duplicate handling strategy has been set. Please refer to Copy - Gradle DSL Version 8.4 for details.

  • 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 3s
Error: Gradle task assembleDebug failed with exit code 1