# ComposeOptions

# ComposeOptions

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

<br />

```
interface ComposeOptions
```

<br />

*** ** * ** ***

Optional settings for the Compose feature.

## Summary

|                                ### Public properties                                |
|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | [kotlinCompilerExtensionVersion](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/ComposeOptions#kotlinCompilerExtensionVersion()) Sets the version of the Kotlin Compiler extension for the project or null if using the default one.                              |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | [kotlinCompilerVersion](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/ComposeOptions#kotlinCompilerVersion()) **This property is deprecated.**Android Gradle Plugin will ignore this option and use the kotlin compiler version that is set in the build script. |

## Public properties

### kotlinCompilerExtensionVersion

Added in 4.2.0  

```
var kotlinCompilerExtensionVersion: String?
```

Sets the version of the Kotlin Compiler extension for the project or null if using the default one.  

### kotlinCompilerVersion

Added in 4.2.0  
Deprecated in 7.0.0  

```
var kotlinCompilerVersion: String?
```
| **This property is deprecated.**   
| Android Gradle Plugin will ignore this option and use the kotlin compiler version that is set in the build script.

Sets the version of the Kotlin Compiler used to compile the project or null if using the default one.