# TryParse(string, out AndroidSdkVersionFull)

> Tries to parse an Android SDK version from a string, for example 36 or 36.1.

## Definition

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

## TryParse(string, AndroidSdkVersionFull)

```csharp
public static bool TryParse(string version, out AndroidSdkVersionFull parsed)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The string representation of the Android SDK version to parse, for example `36` or `36.1`.**** (\[AndroidSdkVersionFull]\(/engine/6000.7/script-reference/unityeditor/androidsdkversionfull)): When this method returns, contains the parsed [AndroidSdkVersionFull](/engine/6000.7/script-reference/unityeditor/androidsdkversionfull.md) if parsing succeeded, or null otherwise.

### Returns

| Type                                                          | Description                                                  |
| ------------------------------------------------------------- | ------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | true if `version` was successfully parsed; otherwise, false. |

### Remarks

This method doesn't support previews and extension SDKs, such as `37.2-beta1`, `36-ext18` and returns false.

### Examples

```csharp
using UnityEngine;
using UnityEditor;

public class AndroidSdkVersionFullTryParseSample : MonoBehaviour
{
    [MenuItem("Build/AndroidSdkVersionFull TryParse Sample")]
    public static void ParseAndroidSdkVersionFull()
    {
        if (AndroidSdkVersionFull.TryParse("36.1", out AndroidSdkVersionFull version))
            PlayerSettings.Android.compileSdkVersion = version;
    }
}
```
