how can i resolve this issue (base) PS C:\Users\a...
# community-support
a
how can i resolve this issue (base) PS C:\Users\aksha\AndroidStudioProjects\cottonix> flutter run Launching lib\main.dart on sdk gphone64 x86 64 in debug mode... FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\aksha\AndroidStudioProjects\cottonix\android\app\build.gradle.kts' line: 1 * What went wrong: An exception occurred applying plugin request [id: 'dev.flutter.flutter-gradle-plugin']
Failed to apply plugin 'dev.flutter.flutter-gradle-plugin'.
> Cannot add task 'generateLockfiles' as a task with that name already exists. * 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 7s Running Gradle task 'assembleDebug'... 8.1s Error: Gradle task assembleDebug failed with exit code 1 (base) PS C:\Users\aksha\AndroidStudioProjects\cottonix>
v
Well, as the error says. You (or plugins you apply) try to add a task with the same name twice and that fails. Without an MCVE it can hardly be told where this is coming from, except that the second one trying to add it is the Flutter plugin. So if this is a Flutter specific problem, you could also ask in some Flutter community instead of here.