ribesg
01/28/2019, 1:04 PMandroid
target has no compilation
russhwolf
01/28/2019, 1:54 PMgoogle()
to your repositories
block instead of just jcenter()
.ribesg
01/28/2019, 2:10 PMribesg
01/28/2019, 2:10 PMrepositories {
google()
jcenter()
}
plugins {
id("com.android.application") version "3.3.0"
kotlin("multiplatform") version "1.3.20"
}
android {
compileSdkVersion(28)
defaultConfig {
minSdkVersion(19)
targetSdkVersion(28)
}
sourceSets {
val main by getting {
java.setSrcDirs(listOf("src/androidMain/kotlin"))
manifest.srcFile("src/androidMain/AndroidManifest.xml")
}
val test by getting {
java.setSrcDirs(listOf("src/androidTest/kotlin"))
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
buildTypes {
val release by getting {
isMinifyEnabled = true
isShrinkResources = true
}
val debug by getting {
isDebuggable = true
isTestCoverageEnabled = true
}
}
println(android.applicationVariants)
}
kotlin {
android {
println(compilations.asMap)
}
iosArm64 {
println(compilations.asMap)
}
iosX64 {
println(compilations.asMap)
}
sourceSets {
val commonMain by getting
val commonTest by getting
val androidMain by getting
val androidTest by getting
val iosMain by creating
val iosTest by creating
}
}
ribesg
01/28/2019, 2:11 PMprintln
print []
and {}
h0tk3y
01/28/2019, 2:43 PMafterEvaluate { ... }
.ribesg
01/28/2019, 2:44 PM