moltendorf
02/01/2020, 7:27 PMandroid.os.Build
)
• When I add a second jvm()
target (for the server), the library builds, but the android app is no longer able to resolve dependencies.russhwolf
02/01/2020, 7:40 PMandroid()
instead of jvm()
for your Android target. You’ll also need to apply one of the android gradle plugins (probably com.android.library
) and include an android {}
block that sets minSdkVersion
and compileSdkVersion
.moltendorf
02/01/2020, 7:45 PMrusshwolf
02/01/2020, 7:45 PMmoltendorf
02/01/2020, 7:47 PMsourceSets["androidMain"].dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib")
}
?russhwolf
02/01/2020, 7:48 PMmoltendorf
02/01/2020, 7:56 PMrusshwolf
02/01/2020, 7:56 PMmoltendorf
02/01/2020, 7:57 PMid("com.android.*library*")
yep… that fixed it I think.Dariusz Rusin
02/03/2020, 6:23 AM