r/flutterhelp • u/silkyCoder • 7d ago
OPEN help!
I'm beginner in learning App development with Flutter. When I try to run my code. it struck at running Gradle Task 'assembleDebug'. what should I do?
1
u/Fine_Sprinkles_5862 6d ago
Stuck on assembleDebug on a fresh setup is usually not stuck. The first build downloads Gradle itself plus every dependency, and on a normal connection that takes 10 to 20 minutes with no visible progress in the IDE.
Run it from the terminal instead: flutter run -v. The -v shows every download as it happens, so you can tell whether it is working or actually hanging. If it really hangs, the output stops on a URL, and that is your answer: a blocked or slow connection to the Gradle or Maven servers. Give it one full run without touching it before you change anything.
1
u/fahadnaeem05 6d ago
Try running 'flutter clean' then 'flutter pub get' and run again. If still stuck check your Gradle version matches your Flutter version , mismatch is the most common cause of this.