Eran Boudjnah
11/17/2022, 7:02 PMdebug
and a release
build types.
The app module is a plain Android module.
We have a second module that's a KMP module.
Every dependency from the KMP module shows in red in the app module.
I fixed it by replacing
androidMain {
dependsOn(commonMain)
}
with
androidDebug {
dependsOn(commonMain)
}
androidRelease {
dependsOn(commonMain)
}
I'm wondering why this works. Is something wrong with my configuration, is this the expected behaviour, or...?Landry Norris
11/18/2022, 3:01 PMEran Boudjnah
11/18/2022, 3:03 PMcom.android.tools.build:gradle:7.3.1
org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10
Landry Norris
11/18/2022, 3:07 PMEran Boudjnah
11/18/2022, 3:09 PMEran Boudjnah
11/18/2022, 3:09 PMLandry Norris
11/18/2022, 3:10 PMLandry Norris
11/18/2022, 3:10 PMEran Boudjnah
11/18/2022, 3:11 PMEran Boudjnah
11/18/2022, 4:27 PMandroidMain {
dependsOn(commonMain)
}
androidDebug {
dependsOn(androidMain)
}
androidRelease {
dependsOn(androidMain)
}
Does not work.
androidDebug {
dependsOn(commonMain)
}
androidRelease {
dependsOn(commonMain)
}
Does.Eran Boudjnah
11/18/2022, 6:34 PMandroidMain
for some reason, so depending on it is no good.Landry Norris
11/18/2022, 6:35 PMEran Boudjnah
11/18/2022, 6:36 PMLandry Norris
11/18/2022, 6:39 PMLandry Norris
11/18/2022, 6:40 PMEran Boudjnah
11/18/2022, 6:40 PMEran Boudjnah
11/18/2022, 6:41 PMAre you using implementation(project(ā:module-nameā)) to depend on the KMP module?Yes š