US Office

1176 Shadeville Rd, Crawfordville Florida 32327, USA

 +1 (850) 780-1313

India Office

Office No 405, Kabir Shilp, Opp. Kansar Hotel, Opp. Landmark, Kudasan, Gandhinagar, Gujarat 382421

[email protected]

How to solve gradle failure a problem occured evaluating project In Flutter ?

How to solve gradle failure a problem occured evaluating project In Flutter

How to solve gradle failure a problem occured evaluating project In Flutter ?

Sometimes users started getting randomly because of Gradle. So in this article, we will go through How to solve Gradle failure a problem Occurred evaluating the project in Flutter?

How to solve Gradle failure a problem occurred evaluating project In Flutter?

This appears to be caused by Flutter boilerplate specifying an old version of the Gradle plugin. I’m still unclear if Flutter package updates in pubspec.yaml/lock are triggering the issue.

In android\gradle\wrapper\ the Flutter boilerplate specifies a Gradle distribution of 4.10.2, which supports a plugin version of up to 3.3.2. However, android\build.gradle only depends on plugin version 3.2.1 (classpath ‘‘).

To resolve, change =>, run flutter clean and try the build again.

According to the gradle release notes, the current version of the plugin and gradle are 3.4.2 and 5.1.1 respectively. I don’t know if Flutter officially supports this version, although it seems to work on my project here and a clean build is markedly faster. The release notes cover some of the changes from 3.2.x => 3.3.x => 3.4.x.

To upgrade to the current version, edit android\gradle\wrapper\ to source gradle 5.1.1, and then you’re able to upgrade the gradle plugin to 3.4.2.



classpath ''

Users can make changes in my project/build.gradle file like the following:

// ... 
dependencies {
        classpath ''
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath ''
    // ... 

Our project uses kotlin-gradle-plugin which has a dependency on “$kotlin_version“. And Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher. So, I changed the value of kotlin_version on the same “build.gradle” file.

ext.kotlin_version = '1.2.71'


ext.kotlin_version = '1.3.0'

And, also you need to go to “android/gradle/wrapper/” file and change it to this:


Now, run the “flutter clean” and then the “flutter run” command.

Tried changing ‘ to various versions.

User can also give try to below steps:

  • Create a new flutter project.
  • Copy all the source files and folders.
  • May need to change copied folders to ‘sources’ File>Project Structure> Project Settings>project name>Sources select the folder then click ‘Source’ above the file name.
  • Copy pubspec.yaml file over and run Pub git
  • Close the project
  • Open the project again


In this article, we have been through how to Solve Gradle failure a problem occurred evaluating the project in Flutter?

Thanks for Reading.
Keep Learning !!! Keep Fluttering !!! is our portal Platform dedicated to Flutter Technology and Flutter Developers. The portal is full of cool resources from Flutter like Flutter Widget GuideFlutter ProjectsCode libs and etc.

Post a Comment