# AndroidExternalToolsSettings.Gradle

> Contains properties to modify Android Gradle specific values.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.Android](/engine/6000.5/script-reference/unityeditor/android.md)
* **Assembly:** UnityEditor.Android.Extensions

```csharp
public class AndroidExternalToolsSettings.Gradle
```

## Examples

```csharp
using UnityEngine; 
using UnityEditor;
using UnityEditor.Android;

public class AndroidGradleSettingsSample
{
    [MenuItem("Tools/Set Android Gradle settings")]
    public static void SetAndroidGradleSettings()
    {
        // Retrieve the current version of the Android Gradle Plugin (AGP)
        string currentVersion = AndroidExternalToolsSettings.Gradle.androidGradlePluginVersion;

        // Log the currently configured version
        Debug.Log($"Current Android Gradle Plugin Version: {currentVersion}");

        // Set a custom path for the Gradle installation.
        // Replace this with the actual path.

        AndroidExternalToolsSettings.Gradle.path = "/path/to/your/gradle";
        Debug.Log($"Gradle Path set to: {AndroidExternalToolsSettings.Gradle.path}");
    }
}
```

## Static Properties

| Property                                                                                                                                            | Description                                                                        |
| --------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| [androidGradlePluginVersion](/engine/6000.5/script-reference/unityeditor/android/androidexternaltoolssettings/gradle/androidgradlepluginversion.md) | Version of the Android Gradle Plugin (AGP) used for building Android applications. |
| [path](/engine/6000.5/script-reference/unityeditor/android/androidexternaltoolssettings/gradle/path.md)                                             | Path to the Gradle used for building Android applications.                         |
| [stopDaemonsOnExit](/engine/6000.5/script-reference/unityeditor/android/androidexternaltoolssettings/gradle/stopdaemonsonexit.md)                   | Stops Gradle daemons when the Unity Editor exits.                                  |
| [userHomePath](/engine/6000.5/script-reference/unityeditor/android/androidexternaltoolssettings/gradle/userhomepath.md)                             | Path to the Gradle User Home directory.                                            |
| [version](/engine/6000.5/script-reference/unityeditor/android/androidexternaltoolssettings/gradle/version.md)                                       | Version of Gradle used for building Android applications.                          |
