flutter app stuck at running gradle task ‘assembledebug’

  1. Adjust the android/build.gradle record in the task

2. Adjust the setup record of Flutter, which is in the Flutter establishment index/bundles/flutter_tools/gradle/flutter.gradle

All things considered, it’s alright, yet mine actually doesn’t work, it’s actually stuck in Running Gradle task’assembleDebug’…, it actually runs a similar mistake message after around 7 minutes of execution. I checked the data on Baidu for a large portion of a day and discovered in no way different The issue isn’t tackled.

  1. Run vacillate clean, and afterward run once more. It very well might be fruitful, yet mine is as yet unrealistic, so the most recent adaptation of gradle6.5 is straightforwardly introduced

Design the most recent rendition of gradle in Settings.There is likewise a contrast between the gradle variant and the gradle module form. Introduce gradle, arrange gradle climate factors please Baidu, there is a finished tutorial,Click it。

  1. It is conceivable that this is the most basic part. I did this progression altogether.

Adjust three records in the vacillate establishment catalog

vacillate/bundles/flutter_tools/gradle/resolve_dependencies.gradle

vacillate/bundles/flutter_tools/gradle/aar_init_script.gradle

vacillate/bundles/flutter_tools/gradle/flutter.gradle

Supplant one of them: https://storage.googleapis.com/download.flutter.io with: http://download.flutter.io and afterward re-vacillate clean and ripple run.

Thanks for reading this article ❤

Leave a Comment