# SetRelease(uint, uint)

> Sets the version property to a release compile SDK version.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Android.Gradle](/engine/6000.7/script-reference/unity/android/gradle.md)
* **Assembly:** Unity.Android.Gradle

```csharp
public void SetRelease(uint major, uint minor = 0)
```

### Parameters

**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): The major API level to compile your project against.**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): The minor API level to compile your project against. Pass 0 to omit it.

### Remarks

For more information about the element, see Android's documentation: [release](https://developer.android.com/reference/tools/gradle-api/com/android/build/api/dsl/CompileSdkSpec#release\(kotlin.Int,kotlin.Function1\)).

Unity writes `major` as the `apiLevel` of the `release` block in the Gradle file, and includes `minor` as the `minorApiLevel` only when `minor` is greater than 0.
