Exception: Gradle task assembleDebug failed with exit code -1 flutter code example
Example: gradle task assembledebug failed
I bet you will find the answer here. running on linux, windows, mac?
Just check in
https://fluttercorner.com/flutter-app-stuck-at-running-gradle-task-assembledebug/