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

julioromano

05/04/2022, 8:00 AM
When building a SQLdelight multiplatform module I’m getting this warning:
Copy code
% ./gradlew :database:build

[...]

> Task :database:compileIosMainKotlinMetadata FAILED
w: Could not find "co.touchlab:sqliter-driver-cinterop-sqlite3"
Any idea why this happens and how to fix it (I know it’s just a warning but…)? Happy to give more info if only I knew what could help (gradle files, other code…)
s

Sebastian Sellmair [JB]

05/04/2022, 1:08 PM
Did you enable cinterop commonization on your end?
j

julioromano

05/04/2022, 2:14 PM
I think no, because I have no idea what it is 🙂
kotlin.mpp.enableCInteropCommonization=true
in gradle.properties? Let me try
Tried right now, nothing changes. Same warning.
Mmmm I’m now getting a similar error with a project that has ktor-client in it:
Copy code
> Task :httpapi:compileIosMainKotlinMetadata FAILED
w: Could not find "io.ktor:ktor-utils-cinterop-threadUtils" 
w: Could not find "org.jetbrains.kotlin.native.platform.linux"
this time setting
kotlin.mpp.enableCInteropCommonization=true
makes the first of the 2 warnings disappear.
s

Sebastian Sellmair [JB]

05/04/2022, 5:17 PM
Are you available for Google Meet debugging? Would be available roughly 8pm cet
j

julioromano

05/05/2022, 11:03 AM
@Sebastian Sellmair [JB] Sorry I missed your answer yesterday, sure I’m available, can we do it today? I’m on CET timezone too.
s

Sunny

05/23/2022, 7:25 AM
Any leads on this
j

julioromano

05/24/2022, 7:56 AM
It appears to be some 3rd party library wrongly declaring linux artifacts causing this warning. Maybe Sebastian che give more details about this.
a

abu naser

01/17/2023, 4:00 PM
same problem here .
285 Views