In Flutter app development, you may encounter the error “running gradle task ‘assembledebug’”. This error occurs frequently, so it’s useful to know the solution.
The solution to this error is very concise and simple, and can be easily resolved by cleaning the project with the following command:
flutter clean
After running clean, try building or running debug again.
(Reference)
Flutter App stuck at “Running Gradle task ‘assembleDebug’… ” - Stack Overflow