Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ComposeOptions\n==============\n\n\n```\ninterface ComposeOptions\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nOptional settings for the Compose feature.\n\nSummary\n-------\n\n| ### Public properties ||\n|-------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | [kotlinCompilerExtensionVersion](/reference/tools/gradle-api/8.1/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. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | [kotlinCompilerVersion](/reference/tools/gradle-api/8.1/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. |\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [useLiveLiterals](/reference/tools/gradle-api/8.1/com/android/build/api/dsl/ComposeOptions#useLiveLiterals()) Enables live literals in Compose |\n\nPublic properties\n-----------------\n\n### kotlinCompilerExtensionVersion\n\n```\nvar kotlinCompilerExtensionVersion: String?\n```\n\nSets the version of the Kotlin Compiler extension for the project or null if using the default one. \n\n### kotlinCompilerVersion\n\n```\nvar kotlinCompilerVersion: String?\n```\n| **This property is deprecated.** \n| Android Gradle Plugin will ignore this option and use the kotlin compiler version that is set in the build script.\n\nSets the version of the Kotlin Compiler used to compile the project or null if using the default one. \n\n### useLiveLiterals\n\n```\nvar useLiveLiterals: Boolean\n```\n\nEnables live literals in Compose"]]