# AndroidSdkVersionFull

> Represents an Android SDK version with an optional minor component, for example 36.1.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule
* **Implements:** [IEquatable\<AndroidSdkVersionFull>](https://learn.microsoft.com/dotnet/api/system.iequatable-1), [IComparable\<AndroidSdkVersionFull>](https://learn.microsoft.com/dotnet/api/system.icomparable-1)

```csharp
public class AndroidSdkVersionFull : IEquatable<AndroidSdkVersionFull>, IComparable<AndroidSdkVersionFull>
```

## Remarks

Android publishes minor SDK releases within a major API level, such as 36.1, as separate installable platforms alongside the major release. Unlike [AndroidSdkVersions](/engine/6000.7/script-reference/unityeditor/androidsdkversions.md), which only lists whole API levels, this type can represent a specific minor release. Use it with [PlayerSettings.Android.compileSdkVersion](/engine/6000.7/script-reference/unityeditor/playersettings/android/compilesdkversion.md).

Internally, Unity encodes an [AndroidSdkVersionFull](/engine/6000.7/script-reference/unityeditor/androidsdkversionfull.md) as a single integer (major \* 1000 + minor) \* 1000. A `major` value of 0 represents [AndroidSdkVersionFull.AndroidApiLevelAuto](/engine/6000.7/script-reference/unityeditor/androidsdkversionfull/androidapilevelauto.md).

Additional Resources: [AndroidSdkVersions](/engine/6000.7/script-reference/unityeditor/androidsdkversions.md), [PlayerSettings.Android.compileSdkVersion](/engine/6000.7/script-reference/unityeditor/playersettings/android/compilesdkversion.md)

## Examples

```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Build;

public class AndroidSdkVersionFullSample : MonoBehaviour
{
    [MenuItem("Build/AndroidSdkVersionFull Sample")]
    public static void BuildAndroidSdkVersionFullSample()
    {
        PlayerSettings.SetScriptingBackend(NamedBuildTarget.Android, ScriptingImplementation.IL2CPP);
        PlayerSettings.Android.targetArchitectures = AndroidArchitecture.ARM64;

        // Compile against API level 36.1
        PlayerSettings.Android.compileSdkVersion = new AndroidSdkVersionFull(36, 1);

        BuildPlayerOptions options = new BuildPlayerOptions();
        options.scenes = new[] { "Assets/Scenes/SampleScene.unity" };
        options.locationPathName = "Build/AndroidBuild.apk";
        options.target = BuildTarget.Android;
        options.targetGroup = BuildTargetGroup.Android;
        BuildPipeline.BuildPlayer(options);
    }
}
```

## Static Fields

| Value                                                                                                           | Description                                                                |
| --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| [AndroidApiLevelAuto](/engine/6000.7/script-reference/unityeditor/androidsdkversionfull/androidapilevelauto.md) | Compile against the highest Android SDK platform installed on the machine. |

## Constructors

| Constructor                                                                                                                   | Description                                                                          |
| ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| [AndroidSdkVersionFull(System.Int32,System.Int32)](/engine/6000.7/script-reference/unityeditor/androidsdkversionfull/ctor.md) | Creates an Android SDK version from a major API level and an optional minor version. |

## Properties

| Property                                                                            | Description                                                                                                                             |
| ----------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| [Major](/engine/6000.7/script-reference/unityeditor/androidsdkversionfull/major.md) | The major API level, for example 36.                                                                                                    |
| [Minor](/engine/6000.7/script-reference/unityeditor/androidsdkversionfull/minor.md) | The minor version of the major API level, such as 1 for API level 36.1. This value defaults to 0 when the release has no minor version. |

## Methods

| Method                                                                                    | Description                                   |
| ----------------------------------------------------------------------------------------- | --------------------------------------------- |
| [ToString](/engine/6000.7/script-reference/unityeditor/androidsdkversionfull/tostring.md) | Formats this Android SDK version as a string. |

## Static Methods

| Method                                                                                    | Description                                                                      |
| ----------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| [TryParse](/engine/6000.7/script-reference/unityeditor/androidsdkversionfull/tryparse.md) | Tries to parse an Android SDK version from a string, for example `36` or `36.1`. |

## Operators

| Operator                                                                                                  | Description                                                                                      |
| --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| [operator >](/engine/6000.7/script-reference/unityeditor/androidsdkversionfull/op-greaterthan.md)         | Returns whether the left-hand Android SDK version is higher than the right-hand one.             |
| [operator >=](/engine/6000.7/script-reference/unityeditor/androidsdkversionfull/op-greaterthanorequal.md) | Returns whether the left-hand Android SDK version is higher than or equal to the right-hand one. |
| [operator \<](/engine/6000.7/script-reference/unityeditor/androidsdkversionfull/op-lessthan.md)           | Determines whether the left-hand Android SDK version is lower than the right-hand one.           |
| [operator \<=](/engine/6000.7/script-reference/unityeditor/androidsdkversionfull/op-lessthanorequal.md)   | Returns whether the left-hand Android SDK version is lower than or equal to the right-hand one.  |
