# AarMetadata

# AarMetadata

[View Source](https://cs.android.com/search?q=file:com/android/build/api/variant/AarMetadata.kt+class:com.android.build.api.variant.AarMetadata)  
Added in 7.0.0  

<br />

```
interface AarMetadata
```

<br />

*** ** * ** ***

Build-time properties for AAR Metadata inside a[Component](https://developer.android.com/reference/tools/gradle-api/8.4/com/android/build/api/variant/Component)

This is accessed via[GeneratesAar.aarMetadata](https://developer.android.com/reference/tools/gradle-api/8.4/com/android/build/api/variant/GeneratesAar#aarMetadata())

## Summary

|                                                                              ### Public properties                                                                              |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>` | [minAgpVersion](https://developer.android.com/reference/tools/gradle-api/8.4/com/android/build/api/variant/AarMetadata#minAgpVersion()) Minimum Android Gradle Plugin version needed to consume this library.         |
| [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)`<`[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`>`       | [minCompileSdk](https://developer.android.com/reference/tools/gradle-api/8.4/com/android/build/api/variant/AarMetadata#minCompileSdk()) Minimum compileSdkVersion needed to consume this library.                     |
| [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)`<`[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`>`       | [minCompileSdkExtension](https://developer.android.com/reference/tools/gradle-api/8.4/com/android/build/api/variant/AarMetadata#minCompileSdkExtension()) Minimum compileSdkExtension needed to consume this library. |

## Public properties

### minAgpVersion

Added in 7.1.0  

```
val minAgpVersion: Property<String>
```

Minimum Android Gradle Plugin version needed to consume this library. This is the minimum AGP version a module must use in order to import this library.

minAgpVersion must be a stable AGP version, and it must be formatted with major, minor, and micro values (for example, "4.0.0").  

### minCompileSdk

Added in 7.0.0  

```
val minCompileSdk: Property<Int>
```

Minimum compileSdkVersion needed to consume this library. This is the minimum sdk version a module must use in order to import this library.  

### minCompileSdkExtension

Added in 7.4.0  

```
val minCompileSdkExtension: Property<Int>
```

Minimum compileSdkExtension needed to consume this library. This is the minimum sdk extension version a module must use in order to import this library.

The default value of[minCompileSdkExtension](https://developer.android.com/reference/tools/gradle-api/8.4/com/android/build/api/variant/AarMetadata#minCompileSdkExtension())is 0 if not set via the DSL.