Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Please read carefully before flag as duplicate because I tried most of solution on the following questions.

Flutter App stuck at “Running Gradle task 'assembleDebug'… ”

when ever I try to run my Flutter program, it gets stuck at “Running Gradle task 'assembleDebug”

Why does assembleDebug takes much longer then project build and how to optimize it?

My app was working normally until the midday, when I trying to running on the emulator or my real/physical device the app is stuck on “Running Gradle task 'assembleDebug'… ”

The solutions that I tried to fix this issue

  1. Disabled the firewall and antivirus (Windows 10)

  2. flutter clean

  3. ./gradlew clean & ./gradlew build, these also get stuck, takes about more than 35 mins with no result after the commands!

  4. Deleted .idea and/or .gradle folders the back it again

  5. This answer "do flutter clean first then copy your project folder somewhere else close your project and open same project which is copied diffrent location. thats it!"

  6. flutter channel master changing flutter channel from stable to master and reverse it

Tried all the above and unfortunately still unsuccessful. I also tried on multiple physical devices in my home. I don't know what causes this issue or how to fix it!

error 1

enter image description here

question from:https://stackoverflow.com/questions/66054224/app-hanging-on-running-gradle-task-assembledebug

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
623 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...