Home > Blockchain >  For Gradle : 7.1.3 - Flutter Android build is failing
For Gradle : 7.1.3 - Flutter Android build is failing

Time:11-03

I recently downloaded android studio version to Android Studio Dolphin | 2021.3.1 Patch 1 and downloaded latest flutter and dart. At time of creating new flutter project it's giving build error.

flutter --version
Flutter 3.3.7 • channel stable • https://github.com/flutter/flutter.git 
Framework • revision e99c9c7cd9 (2 days ago) • 2022-11-01 16:59:00 -0700
Engine • revision 857bd6b74c
Tools • Dart 2.18.4 • DevTools 2.15.0

enter image description here

CodePudding user response:

You have to specify a repository from which gradle can download the dependency.

Please, check your build.gradle file (application level) that contains google and mavenCentral repositories

Build script section:

...
buildscript {
    repositories {
         google()
         mavenCentral()
    }
    ...
}

All projects section:

...
allprojects {
    repositories {
        google()
        mavenCentral()
    }
    ...
}

CodePudding user response:

Check below link. It having solution for your issue

How to fix gradle build error A problem occurred configuring root project?

  • Related