# LibraryBuildFeatures

# LibraryBuildFeatures

```
interface LibraryBuildFeatures : BuildFeatures
```

|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [com.android.build.api.dsl.LibraryBuildFeatures](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/LibraryBuildFeatures#) |

A list of build features that can be disabled or enabled in an Android Library project.

## Summary

|                                                                                                                                                  ### Properties                                                                                                                                                  ||
|---------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? | [androidResources](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/LibraryBuildFeatures#androidResources:kotlin.Boolean) Flag to disable Android resource processing.        |
| abstract[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? | [dataBinding](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/LibraryBuildFeatures#dataBinding:kotlin.Boolean) Flag to enable Data Binding.                                  |
| abstract[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? | [mlModelBinding](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/LibraryBuildFeatures#mlModelBinding:kotlin.Boolean) Flag to enable Machine Learning Model Binding.          |
| abstract[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? | [prefabPublishing](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/LibraryBuildFeatures#prefabPublishing:kotlin.Boolean) Flag to enable generating Prefab packages for AARs. |

| ### Inherited properties ||
|---|---|
| From class[BuildFeatures](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/BuildFeatures) |-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? | [aidl](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/BuildFeatures#aidl:kotlin.Boolean) <br /> Flag to enable AIDL compilation. 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.defaults.buildfeatures.aidl=true`in the gradle.properties file at the root project of your build. More information about this feature at: TBD <br />                                                 | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? | [buildConfig](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/BuildFeatures#buildConfig:kotlin.Boolean) <br /> Flag to enable/disable generation of the`BuildConfig`class. 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.defaults.buildfeatures.buildconfig=true in the gradle.properties file at the root project of your build. More information about this feature at: TBD <br /> | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? | [compose](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/BuildFeatures#compose:kotlin.Boolean) <br /> Flag to enable Compose feature. Setting the value to`null`resets to the default value Default value is`false`. More information available about this feature at: TBD <br />                                                                                                                                                                                                                                    | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? | [prefab](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/BuildFeatures#prefab:kotlin.Boolean) <br /> Flag to enable/disable import of Prefab dependencies from AARs. Setting the value to`null`resets to the default value. Default value is`false`. You can override the default for this in your module by setting android { buildFeatures { prefab true } } in the module's build.gradle file. More information about this feature at: TBD <br />                                                                  | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? | [renderScript](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/BuildFeatures#renderScript:kotlin.Boolean) <br /> Flag to enable RenderScript compilation. 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.defaults.buildfeatures.renderscript=true`in the gradle.properties file at the root project of your build. More information about this feature at: TBD <br />                 | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? | [resValues](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/BuildFeatures#resValues:kotlin.Boolean) <br /> Flag to enable Resource Values generation. 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.defaults.buildfeatures.resvalues=true`in the gradle.properties file at the root project of your build. More information about this feature at: TBD <br />                        | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? | [shaders](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/BuildFeatures#shaders:kotlin.Boolean) <br /> Flag to enable Shader compilation. 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.defaults.buildfeatures.shaders=true`in the gradle.properties file at the root project of your build. More information about this feature at: TBD <br />                                      | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? | [viewBinding](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/BuildFeatures#viewBinding:kotlin.Boolean) <br /> Flag to enable View 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.viewbinding=true`in the gradle.properties file at the root project of your build. More information about this feature at: TBD <br />                               | ||

## Properties

### androidResources

```
abstract var 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

```
abstract var 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

```
abstract var 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

```
abstract var 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