androidMain
abstract val NamedDomainObjectContainer<KotlinSourceSet>.androidMain: NamedDomainObjectProvider<KotlinSourceSet>
Static accessor for the main Kotlin Source Set of android target. Declare android target to access this source set. If android target wasn't declared, accessing this source set will cause a runtime error during configuration time.
Sample:
kotlin {
androidTarget() // Target is declared, androidMain source set is created
sourceSets {
androidMain.dependencies {
// Add androidMain dependencies here
}
}
}
Content copied to clipboard
Since
1.9.20