# ToString()

> Formats this Android SDK version as a string.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public override string ToString()
```

### Returns

| Type                                                           | Description                                                                                                                                                                                                                                                                       |
| -------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The version string in `Major.Minor` format if `Minor` is greater than 0, `Major` format otherwise, or the string "AndroidApiLevelAuto" for [AndroidSdkVersionFull.AndroidApiLevelAuto](/engine/6000.7/script-reference/unityeditor/androidsdkversionfull/androidapilevelauto.md). |

### Remarks

Unity uses this format, for example `36.1` or `36`, when writing a compile SDK version to a Gradle file through [CompileSdkSpec](/engine/6000.7/script-reference/unity/android/gradle/compilesdkspec.md).
