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 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