Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

flutter get stuck at resolving dependencies for android

Tags:

I am using Android Studio for flutter

My flutter doctor says no issue found, when I run iOS app, it works but when app is requested to run as Android app, android studio just hangs up on Resolving dependencies.. what issue can be there? is it downloading something or any other issue?

like image 831
Shahbaz Ali Avatar asked May 03 '18 00:05

Shahbaz Ali


2 Answers

If that's the first Flutter app that you are running I suggest you to give it some time. I am using i5 QC 3.2GHz / 16ram machine and it took me about 10 minutes the first time. At first it get stuck at:

Initializing gradle...

and then again at

Resolving dependencies...

after the first launch, it's running reasonably fast.

like image 130
Ivan Kaloyanov Avatar answered Sep 29 '22 00:09

Ivan Kaloyanov


Open project root directory in terminal and enter command:

android/gradlew 

This will install dependencies related with gradle build system.

like image 38
B45i Avatar answered Sep 29 '22 00:09

B45i