AarMetadata

interface AarMetadata
com.android.build.api.dsl.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 Int?

The minimum compileSdkVersion required by any consuming module.

Properties

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.