Stay organized with collections
Save and categorize content based on your preferences.
HasAndroidResources
interface HasAndroidResources
Known Indirect Subclasses
|
Summary
Public methods
Properties
pseudoLocalesEnabled
abstract val pseudoLocalesEnabled: Property<Boolean>
Variant's is pseudo locales enabled, initialized by the corresponding DSL elements.
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,["# HasAndroidResources\n===================\n\n```\ninterface HasAndroidResources\n```\n\n|--------------------------------------------------------|\n| [com.android.build.api.variant.HasAndroidResources](#) |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [AndroidTest](/reference/tools/gradle-api/7.1/com/android/build/api/variant/AndroidTest), [TestFixtures](/reference/tools/gradle-api/7.1/com/android/build/api/variant/TestFixtures), [Variant](/reference/tools/gradle-api/7.1/com/android/build/api/variant/Variant) |--------------------------------------------------------------------------------------------|------------------------------------------------------| | [AndroidTest](/reference/tools/gradle-api/7.1/com/android/build/api/variant/AndroidTest) | Properties for the android test Variant of a module. | | [TestFixtures](/reference/tools/gradle-api/7.1/com/android/build/api/variant/TestFixtures) | \u003cbr /\u003e | | [Variant](/reference/tools/gradle-api/7.1/com/android/build/api/variant/Variant) | Parent interface for all types of variants. | |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Indirect Subclasses [ApplicationVariant](/reference/tools/gradle-api/7.1/com/android/build/api/variant/ApplicationVariant), [DynamicFeatureVariant](/reference/tools/gradle-api/7.1/com/android/build/api/variant/DynamicFeatureVariant), [LibraryVariant](/reference/tools/gradle-api/7.1/com/android/build/api/variant/LibraryVariant), [TestVariant](/reference/tools/gradle-api/7.1/com/android/build/api/variant/TestVariant) |--------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------| | [ApplicationVariant](/reference/tools/gradle-api/7.1/com/android/build/api/variant/ApplicationVariant) | Properties for the main Variant of an application. | | [DynamicFeatureVariant](/reference/tools/gradle-api/7.1/com/android/build/api/variant/DynamicFeatureVariant) | \u003cbr /\u003e | | [LibraryVariant](/reference/tools/gradle-api/7.1/com/android/build/api/variant/LibraryVariant) | [Variant](/reference/tools/gradle-api/7.1/com/android/build/api/variant/Variant) for Library projects | | [TestVariant](/reference/tools/gradle-api/7.1/com/android/build/api/variant/TestVariant) | [Variant](/reference/tools/gradle-api/7.1/com/android/build/api/variant/Variant) for test-only modules. | |\n\nSummary\n-------\n\n| ### Public methods ||\n|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [ResValue.Key](/reference/tools/gradle-api/7.1/com/android/build/api/variant/ResValue.Key) | [makeResValueKey](#makeResValueKey(kotlin.String,%20kotlin.String))`(`type:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `name:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Make a [ResValue.Key](/reference/tools/gradle-api/7.1/com/android/build/api/variant/ResValue.Key) to interact with [resValues](#resValues:org.gradle.api.provider.MapProperty)'s [MapProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html) |\n\n| ### Properties ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)\\\u003c[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)\\\u003e | [pseudoLocalesEnabled](#pseudoLocalesEnabled:org.gradle.api.provider.Property) Variant's is pseudo locales enabled, initialized by the corresponding DSL elements. |\n| abstract [MapProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html)\\\u003c[ResValue.Key](/reference/tools/gradle-api/7.1/com/android/build/api/variant/ResValue.Key), [ResValue](/reference/tools/gradle-api/7.1/com/android/build/api/variant/ResValue)\\\u003e | [resValues](#resValues:org.gradle.api.provider.MapProperty) Variant's [ResValue](/reference/tools/gradle-api/7.1/com/android/build/api/variant/ResValue) which will be generated. |\n\nPublic methods\n--------------\n\n### makeResValueKey\n\n```\nabstract fun makeResValueKey(\n type: String, \n name: String\n): ResValue.Key\n```\n\nMake a [ResValue.Key](/reference/tools/gradle-api/7.1/com/android/build/api/variant/ResValue.Key) to interact with [resValues](#resValues:org.gradle.api.provider.MapProperty)'s [MapProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html)\n\nProperties\n----------\n\n### pseudoLocalesEnabled\n\n```\nabstract val pseudoLocalesEnabled: Property\u003cBoolean\u003e\n```\n\nVariant's is pseudo locales enabled, initialized by the corresponding DSL elements. \n\n### resValues\n\n```\nabstract val resValues: MapProperty\u003cResValue.Key, ResValue\u003e\n```\n\nVariant's [ResValue](/reference/tools/gradle-api/7.1/com/android/build/api/variant/ResValue) which will be generated."]]