# CompileSdkVersion

# 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-alpha02  

<br />

```
interface CompileSdkVersion
```

<br />

*** ** * ** ***

DSL object to represent compile sdk version.

## Summary

|                                ### Public properties                                |
|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | [addonName](https://developer.android.com/reference/tools/gradle-api/8.13/com/android/build/api/dsl/CompileSdkVersion#addonName()) The add-on name of the SDK to compile your project against.    |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`?`       | [apiLevel](https://developer.android.com/reference/tools/gradle-api/8.13/com/android/build/api/dsl/CompileSdkVersion#apiLevel()) The API level to compile your project against.                   |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | [codeName](https://developer.android.com/reference/tools/gradle-api/8.13/com/android/build/api/dsl/CompileSdkVersion#codeName()) The preview API to compile your project against.                 |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`?`       | [minorApiLevel](https://developer.android.com/reference/tools/gradle-api/8.13/com/android/build/api/dsl/CompileSdkVersion#minorApiLevel()) Minor API version for compile SDK.                     |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`?`       | [sdkExtension](https://developer.android.com/reference/tools/gradle-api/8.13/com/android/build/api/dsl/CompileSdkVersion#sdkExtension()) The SDK Extension level to compile your project against. |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | [vendorName](https://developer.android.com/reference/tools/gradle-api/8.13/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-alpha02  

```
val addonName: String?
```

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

### apiLevel

Added in 8.13.0-alpha02  

```
val apiLevel: Int?
```

The API level to compile your project against.  

### codeName

Added in 8.13.0-alpha02  

```
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-alpha02  

```
val minorApiLevel: Int?
```

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

### sdkExtension

Added in 8.13.0-alpha02  

```
val sdkExtension: Int?
```

The SDK Extension level to compile your project against.  

### vendorName

Added in 8.13.0-alpha02  

```
val vendorName: String?
```

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