Slava Kornienko
08/03/2022, 5:07 PMTop-level Android dependencies are not supported – please declare the dependencies for an individual source set.
And message from AppCode (doesn’t shows in gradle log)
Collection contains no element matching the predicate.
AppCode 2022.2
Build #OC-222.3345.144, built on August 2, 2022
com.jetbrains.appcode.android (222.3345.144)
com.intellij.appcode.kmm (222.3345.144)Joey
10/14/2022, 2:12 PMSlava Kornienko
10/14/2022, 2:13 PMJoey
10/14/2022, 2:20 PMJoey
10/14/2022, 2:30 PMStefan Thaler
11/07/2022, 12:23 PMkotlin / sourceSets
block and use the KMP plugin instead of the android plugin.
// androidApp/build.gradle.kts
plugins {
kotlin("multiplatform") // instead of kotlin("android")
id("com.android.application")
//...
}
kotlin {
android()
sourceSets {
val androidMain by getting {
dependencies {
implementation(project(":shared"))
// other app dependencies
}
}
}
}
android {
// android configuration
}