https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
c

cafonsomota

02/03/2021, 3:04 PM
Hello all, I’m making some tests here with KMP multi-modules but I think I’m doing something wrong in terms of configurations. I’ve got: • KMP project (library) no 1 • KMP project (library) no 2 (makes use of library no 1) • Android/iOS app that use both libraries I can successfully compile each library individual. But when I try to import lib no1 intro lib no2 on Android Studio (via settings.gradle) I’ve got a couple of errors: • It’s unable to find buildSrc • It complains as not having any target defined (I’m using gradle 6.8.1 and plugin 7.0.0-alpha05) Any idea what I might be doing wrong?
m

magnumrocha

02/03/2021, 3:09 PM
c

cafonsomota

02/03/2021, 3:20 PM
Hmm… if I understood it correctly, if I run it via:
gradle build assembleDebug
it should work, right? I’m still having the same issue 😕
m

magnumrocha

02/03/2021, 3:41 PM
no, if you call
gradle build
the Issue will happens because the
build
task has not variant applied
try call only the
assembleDebug
task
c

cafonsomota

02/03/2021, 3:58 PM
same problem on my side 😕
m

magnumrocha

02/03/2021, 4:02 PM
well, it seams the tasks dependent on non
variant
settings will always fail
2 Views