# AndroidVersion

# AndroidVersion

```
interface AndroidVersion
```

|------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [com.android.build.api.variant.AndroidVersion](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidVersion#) |

## Summary

|                                                                                                                                                 ### Properties                                                                                                                                                 ||
|-------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)        | [apiLevel](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidVersion#apiLevel:kotlin.Int) SDK version codes mirroring ones found in Build#VERSION_CODES on Android. |
| abstract[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | [codename](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidVersion#codename:kotlin.String) Preview versions of the platform are identified by a code name.        |

## Properties

### apiLevel

```
abstract val apiLevel: Int
```

SDK version codes mirroring ones found in Build#VERSION_CODES on Android.  

### codename

```
abstract val codename: String?
```

Preview versions of the platform are identified by a code name. Their API level is usually set to the value of the previous platform.