Just Follow Below Steps.
Read moreHow do I change gradle in Flutter?
open your project and then go to : File->Settings->Build, Execution, Deployment->Build Tools-> Gradle . Add the path of your Gradle in The Android Studio as shown bellow.
Read moreWhere is gradle file in Flutter?
B. gradle file. For full-Flutter apps, these edits are done in your Flutter project’s /android/ directory .
Read moreWhere is the gradle settings?
We can get to the settings from the Gradle Tool Window, or from the usual Settings/Preferences dialog (⌘, (macOS), or Ctrl+Alt+S (Windows/Linux)) and navigating to Build, Execution, Deployment | Build Tools | Gradle. Generally these settings are fine for most projects, and don’t need changing.
Read more