Flutter App stuck at “Running Gradle task 'assembleDebug'. SOLUTION

Опубликовано: 21 Февраль 2026
на канале: Aditya Thakur
159,914
1.4k

When I run the app it gets stuck, Launching lib\main.dart in debug mode:
Running Gradle task 'assembleDebug'...(This is taking an unexpectedly long time.)

If Running Gradle task assembledebug is taking unexpectedly long time, try updating Gradle in your project.

0:04 Introduction to the problem
0:21 Open your flutter Project directory.
0:57 Change directory to android directory in your flutter project directory cd android
01:05 clean gradle ./gradlew clean
01:10 Build gradle ./gradlew build or you can combine both commands with just ./gradlew clean build
01:46 Now run your flutter project.
01:48 Thank you for watching!

Link to my stackoverflow answer:
https://stackoverflow.com/a/63920645/...

----------------------------------------------------------------------------
Hey!
I am Aditya Thakur, a Developer, and Designer. I make videos on Flutter, Python, and other technologies. I also sometimes take up Profile Building and entrepreneurship!

💙 Learn how to use Flutter with Firebase:    • FlutterFire - Free Firebase for Flutter Tu...  

🎬 Python Debugged Playlist:    • Python Debugged  

📚 PROMOS
Get an exclusive 10% discount on every GeeksforGeeks course!!
Use code: ADITYAT
Check out courses here: https://practice.geeksforgeeks.org/co...

💰 INVESTMENT APPS
Create a free account | Binance: https://accounts.binance.cc/en/regist...
Trade at India’s largest exchange | WazirX: https://wazirx.com/invite/xen3p4h3

I post stories about my life and business on my Instagram -   / adityathakurxd  

Want to talk business? Or ask a question?
Reach out to me on LinkedIn:   / adityathakurxd  
----------------------------------------------------------------------------

Become a part of my community! (100+ Developers already 🥰)
Link to Discord/Telegram: https://linktr.ee/flutterdev