flutter gradle task assembledebug failed 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/