Stay organized with collections
Save and categorize content based on your preferences.
LibraryBuildFeatures
interface LibraryBuildFeatures : BuildFeatures
A list of build features that can be disabled or enabled in an Android Library project.
Summary
Public properties |
Boolean? |
Flag to disable Android resource processing.
|
Boolean? |
Flag to enable Data Binding.
|
Boolean? |
Flag to enable Machine Learning Model Binding.
|
Boolean? |
Flag to enable generating Prefab packages for AARs.
|
Public properties
androidResources
val androidResources: Boolean?
Flag to disable Android resource processing.
Setting the value to 'null' resets to the default value. Default value is 'true'.
You can override the default for this for all projects in your build by adding the line android.library.defaults.buildfeatures.androidresources=false
in the gradle.properties file at the root project of your build.
More information about this feature at: TBD
dataBinding
val dataBinding: Boolean?
Flag to enable Data Binding.
Setting the value to null
resets to the default value. Default value is false
.
You can override the default for this for all projects in your build by adding the line android.defaults.buildfeatures.databinding=true
in the gradle.properties
file at the root project of your build.
More information about this feature at: TBD
mlModelBinding
val mlModelBinding: Boolean?
Flag to enable Machine Learning Model Binding.
Setting the value to null
resets to the default value. Default value is false
.
You can override the default for this for all projects in your build by adding the line android.defaults.buildfeatures.mlmodelbinding=true
in the gradle.properties
file at the root project of your build.
More information about this feature at: TBD
prefabPublishing
val prefabPublishing: Boolean?
Flag to enable generating Prefab packages for AARs.
Setting the value to null
resets to the default value. Default value is false
.
You can override the default for this for all projects in your build by adding the line android.defaults.buildfeatures.prefabPublishing=true
in the gradle.properties
file at the root project of your build.
More information about this feature at: https://developer.android.com/studio/build/native-dependencies
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,["# LibraryBuildFeatures\n====================\n\n\n```\ninterface LibraryBuildFeatures : BuildFeatures\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA list of build features that can be disabled or enabled in an Android Library project.\n\nSummary\n-------\n\n| ### Public properties ||\n|---------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`?` | [androidResources](/reference/tools/gradle-api/7.2/com/android/build/api/dsl/LibraryBuildFeatures#androidResources()) Flag to disable Android resource processing. |\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`?` | [dataBinding](/reference/tools/gradle-api/7.2/com/android/build/api/dsl/LibraryBuildFeatures#dataBinding()) Flag to enable Data Binding. |\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`?` | [mlModelBinding](/reference/tools/gradle-api/7.2/com/android/build/api/dsl/LibraryBuildFeatures#mlModelBinding()) Flag to enable Machine Learning Model Binding. |\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`?` | [prefabPublishing](/reference/tools/gradle-api/7.2/com/android/build/api/dsl/LibraryBuildFeatures#prefabPublishing()) Flag to enable generating Prefab packages for AARs. |\n\n| ### Inherited functions ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| From class [ExtensionAware](https://docs.gradle.org/current/javadoc/org/gradle/api/plugins/ExtensionAware.html) |--------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------| | [ExtensionContainer](https://docs.gradle.org/current/javadoc/org/gradle/api/plugins/ExtensionContainer.html) | [getExtensions](https://docs.gradle.org/current/javadoc/org/gradle/api/plugins/ExtensionAware.html#getExtensions--)`()` | |\n\nPublic properties\n-----------------\n\n### androidResources\n\n```\nval androidResources: Boolean?\n```\n\nFlag to disable Android resource processing.\n\nSetting the value to 'null' resets to the default value. Default value is 'true'.\n\nYou can override the default for this for all projects in your build by adding the line `android.library.defaults.buildfeatures.androidresources=false` in the gradle.properties file at the root project of your build.\n\nMore information about this feature at: TBD \n\n### dataBinding\n\n```\nval dataBinding: Boolean?\n```\n\nFlag to enable Data Binding.\n\nSetting the value to `null` resets to the default value. Default value is `false`.\n\nYou can override the default for this for all projects in your build by adding the line `android.defaults.buildfeatures.databinding=true` in the `gradle.properties` file at the root project of your build.\n\nMore information about this feature at: TBD \n\n### mlModelBinding\n\n```\nval mlModelBinding: Boolean?\n```\n\nFlag to enable Machine Learning Model Binding.\n\nSetting the value to `null` resets to the default value. Default value is `false`.\n\nYou can override the default for this for all projects in your build by adding the line `android.defaults.buildfeatures.mlmodelbinding=true` in the `gradle.properties` file at the root project of your build.\n\nMore information about this feature at: TBD \n\n### prefabPublishing\n\n```\nval prefabPublishing: Boolean?\n```\n\nFlag to enable generating Prefab packages for AARs.\n\nSetting the value to `null` resets to the default value. Default value is `false`.\n\nYou can override the default for this for all projects in your build by adding the line `android.defaults.buildfeatures.prefabPublishing=true` in the `gradle.properties` file at the root project of your build.\n\nMore information about this feature at: https://developer.android.com/studio/build/native-dependencies"]]