Stay organized with collections
Save and categorize content based on your preferences.
AndroidComponents
interface AndroidComponents
Known indirect subclasses
Summary
Public properties |
AndroidPluginVersion |
The version of the Android Gradle Plugin currently in use.
|
SdkComponents |
Provides access to underlying Android SDK and build-tools components like adb.
|
Public properties
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# AndroidComponents\n=================\n\n\n```\ninterface AndroidComponents\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[AndroidComponentsExtension](/reference/tools/gradle-api/8.2/com/android/build/api/variant/AndroidComponentsExtension), [KotlinMultiplatformAndroidComponentsExtension](/reference/tools/gradle-api/8.2/com/android/build/api/variant/KotlinMultiplatformAndroidComponentsExtension) \n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------|\n| [AndroidComponentsExtension](/reference/tools/gradle-api/8.2/com/android/build/api/variant/AndroidComponentsExtension) | Generic extension for Android Gradle Plugin related components. |\n| [KotlinMultiplatformAndroidComponentsExtension](/reference/tools/gradle-api/8.2/com/android/build/api/variant/KotlinMultiplatformAndroidComponentsExtension) | Components extension for KMP Android Gradle Plugin related components. |\n\nKnown indirect subclasses \n[ApplicationAndroidComponentsExtension](/reference/tools/gradle-api/8.2/com/android/build/api/variant/ApplicationAndroidComponentsExtension), [DynamicFeatureAndroidComponentsExtension](/reference/tools/gradle-api/8.2/com/android/build/api/variant/DynamicFeatureAndroidComponentsExtension), [LibraryAndroidComponentsExtension](/reference/tools/gradle-api/8.2/com/android/build/api/variant/LibraryAndroidComponentsExtension), [TestAndroidComponentsExtension](/reference/tools/gradle-api/8.2/com/android/build/api/variant/TestAndroidComponentsExtension) \n\n|----------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------|\n| [ApplicationAndroidComponentsExtension](/reference/tools/gradle-api/8.2/com/android/build/api/variant/ApplicationAndroidComponentsExtension) | Extension for the Android Application Gradle Plugin components. |\n| [DynamicFeatureAndroidComponentsExtension](/reference/tools/gradle-api/8.2/com/android/build/api/variant/DynamicFeatureAndroidComponentsExtension) | Extension for the Android Dynamic Feature Gradle Plugin components. |\n| [LibraryAndroidComponentsExtension](/reference/tools/gradle-api/8.2/com/android/build/api/variant/LibraryAndroidComponentsExtension) | Extension for the Android Library Gradle Plugin components. |\n| [TestAndroidComponentsExtension](/reference/tools/gradle-api/8.2/com/android/build/api/variant/TestAndroidComponentsExtension) | Extension for the Android Test Gradle Plugin components. |\n\n*** ** * ** ***\n\nSummary\n-------\n\n| ### Public properties ||\n|----------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AndroidPluginVersion](/reference/tools/gradle-api/8.2/com/android/build/api/AndroidPluginVersion) | [pluginVersion](/reference/tools/gradle-api/8.2/com/android/build/api/variant/AndroidComponents#pluginVersion()) The version of the Android Gradle Plugin currently in use. |\n| [SdkComponents](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/SdkComponents) | [sdkComponents](/reference/tools/gradle-api/8.2/com/android/build/api/variant/AndroidComponents#sdkComponents()) Provides access to underlying Android SDK and build-tools components like adb. |\n\nPublic properties\n-----------------\n\n### pluginVersion\n\n```\nval pluginVersion: AndroidPluginVersion\n```\n\nThe version of the Android Gradle Plugin currently in use. \n\n### sdkComponents\n\n```\nval sdkComponents: SdkComponents\n```\n\nProvides access to underlying Android SDK and build-tools components like adb. \n\n| Returns ||\n|------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| [SdkComponents](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/SdkComponents) | [SdkComponents](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/SdkComponents) to access Android SDK used by Gradle. |"]]