# CompileSdkVersion

[View Source](https://cs.android.com/search?q=file:com/android/build/api/dsl/CompileSdkSpec.kt+class:com.android.build.api.dsl.CompileSdkVersion) Added in 8.13.0


```
@org.gradle.declarative.dsl.model.annotations.HiddenInDefinition
interface CompileSdkVersion
```

<br />

*** ** * ** ***

DSL object to represent compile sdk version.

## Summary

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/CompileSdkVersion#addonName()` The add-on name of the SDK to compile your project against. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html?` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/CompileSdkVersion#apiLevel()` The API level to compile your project against. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html?` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/CompileSdkVersion#betaVersion()` The beta version of the SDK. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/CompileSdkVersion#canaryDate()` The canary version's date. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/CompileSdkVersion#codeName()` The preview API to compile your project against. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html?` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/CompileSdkVersion#minorApiLevel()` Minor API version for compile SDK. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html?` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/CompileSdkVersion#sdkExtension()` The SDK Extension level to compile your project against. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/CompileSdkVersion#vendorName()` The vendor name of the SDK to compile your project against. |

## Public properties

### addonName

Added in 8.13.0

```
val addonName: String?
```

The add-on name of the SDK to compile your project against.

### apiLevel

Added in 8.13.0

```
val apiLevel: Int?
```

The API level to compile your project against.

### betaVersion

Added in 9.6.0-alpha03

```
val betaVersion: Int?
```

The beta version of the SDK.

### canaryDate

Added in 9.6.0-alpha03

```
val canaryDate: String?
```

The canary version's date.

### codeName

Added in 8.13.0

```
val codeName: String?
```

The preview API to compile your project against. Once the preview APIs are finalized, they will be allocated a stable integer value.

### minorApiLevel

Added in 8.13.0

```
val minorApiLevel: Int?
```

Minor API version for compile SDK. This should be used with the `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/CompileSdkVersion#apiLevel()` property to specify a full SDK version.

### sdkExtension

Added in 8.13.0

```
val sdkExtension: Int?
```

The SDK Extension level to compile your project against.

### vendorName

Added in 8.13.0

```
val vendorName: String?
```

The vendor name of the SDK to compile your project against.