'How to solve this error in flutter Could not determine the dependencies of task ':app:compileFlutterBuildDebug'. using android studio

Launching lib\main.dart on AOSP on IA Emulator in debug mode... Running Gradle task 'assembly debug'...

FAILURE: Build failed with an exception.

  • Where: Script 'C:\Flutter\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1167

  • What went wrong: Could not determine the dependencies of task ':app:compileFlutterBuildDebug'.

Index 1 out of bounds for length 1

  • Try: Run with --stack trace 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 the 20s Exception: Gradle task assembly debug failed with exit code 1



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source