# 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/8.10/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/8.10/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. |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)  | [useLiveLiterals](https://developer.android.com/reference/tools/gradle-api/8.10/com/android/build/api/dsl/ComposeOptions#useLiveLiterals()) **This property is deprecated.**ComposeOptions.useLiveLiterals is deprecated and will be removed in AGP 9.0.                                                   |

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

### useLiveLiterals

Added in 7.0.0  
Deprecated in 8.7.0  

```
var useLiveLiterals: Boolean
```
| **This property is deprecated.**   
| ComposeOptions.useLiveLiterals is deprecated and will be removed in AGP 9.0.

Enables live literals in Compose