Fixing initializing Gradle in our first flutter app


Running our first flutter app might take some time but imagine we run into an issue like this:

So this seems like our app is stuck on “initializing Gradle” so we wait and wait without any clarity or knowing what to do.

What is happening is this — Android Studio is trying to download the Gradle required in the project. But the terminal is not showing us the proper message hence we don’t know that AS is downloading Gradle.

To resolve this issue, we need to know the Gradle version of our project. Open the project in Android Studio android>gradle>wrapper> and find the Gradle version there.

Looking at the distributionUrl, the Gradle version is 4.10.2-all.

Now we have to download that exact Gradle version. Copy and paste the URL in your browser and download the Gradle.

Once it is done downloading, copy and paste the zip file in the location where the required Gradle should be located. The directory of my Gradle looks like the below:


So copy and paste the Gradle in the above directory. Then try to run your flutter project. It should work now.

Hope this solves it.


Written by

A software developer and a general lover of tech.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade