# AndroidApiLevelAuto

> Compile against the highest Android SDK platform installed on the machine.

## Definition

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

```csharp
[NoAutoStaticsCleanup]
public static readonly AndroidSdkVersionFull AndroidApiLevelAuto
```

### Remarks

Assign this to [PlayerSettings.Android.compileSdkVersion](/engine/6000.7/script-reference/unityeditor/playersettings/android/compilesdkversion.md) to resolve the compile SDK version automatically, independently of [PlayerSettings.Android.targetSdkVersion](/engine/6000.7/script-reference/unityeditor/playersettings/android/targetsdkversion.md). Setting [PlayerSettings.Android.compileSdkVersion](/engine/6000.7/script-reference/unityeditor/playersettings/android/compilesdkversion.md) to null has the same effect.
