Stay organized with collections
Save and categorize content based on your preferences.
interface AarMetadata
DSL object for configuring metadata that is embedded in the AAR.
This metadata is used by consumers of the AAR to control their behavior.
Summary
Properties
|
abstract String? |
The minimum Android Gradle Plugin version required by any consuming module.
|
abstract Int? |
The minimum compileSdkVersion required by any consuming module.
|
Properties
minAgpVersion
abstract var minAgpVersion: String?
The minimum Android Gradle Plugin version required by any consuming module.
For example, setting this when the AAR relies on a feature from a new version of AGP will
alert consuming projects that they need to update their AGP version to match, rather than
getting an ambiguous error from the older version of AGP.
minAgpVersion must be a stable AGP version, and it must be formatted with major, minor, and
micro values (for example, "4.0.0").
minCompileSdk
abstract var minCompileSdk: Int?
The minimum compileSdkVersion required by any consuming module.
For example, setting this when the AAR uses an Android resource from a new version of the
Android platform will alert consuming projects that they need to update their compileSdk
version to match, rather than getting a 'resource not found' error during resource
processing.
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,["# AarMetadata\n===========\n\n```\ninterface AarMetadata\n```\n\n|--------------------------------------------|\n| [com.android.build.api.dsl.AarMetadata](#) |\n\nDSL object for configuring metadata that is embedded in the AAR.\n\nThis metadata is used by consumers of the AAR to control their behavior.\n\nSummary\n-------\n\n| ### Properties ||\n|--------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|\n| abstract [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | [minAgpVersion](#minAgpVersion:kotlin.String) The minimum Android Gradle Plugin version required by any consuming module. |\n| abstract [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)? | [minCompileSdk](#minCompileSdk:kotlin.Int) The minimum compileSdkVersion required by any consuming module. |\n\nProperties\n----------\n\n### minAgpVersion\n\n```\nabstract var minAgpVersion: String?\n```\n\nThe minimum Android Gradle Plugin version required by any consuming module.\n\nFor example, setting this when the AAR relies on a feature from a new version of AGP will\nalert consuming projects that they need to update their AGP version to match, rather than\ngetting an ambiguous error from the older version of AGP.\n\nminAgpVersion must be a stable AGP version, and it must be formatted with major, minor, and\nmicro values (for example, \"4.0.0\"). \n\n### minCompileSdk\n\n```\nabstract var minCompileSdk: Int?\n```\n\nThe minimum compileSdkVersion required by any consuming module.\n\nFor example, setting this when the AAR uses an Android resource from a new version of the\nAndroid platform will alert consuming projects that they need to update their compileSdk\nversion to match, rather than getting a 'resource not found' error during resource\nprocessing."]]