Hello, I'm still getting this error that prevents...
# squarelibraries
s
Hello, I'm still getting this error that prevents me from building my iOS Application. It started occurring when I imported SQLDelight to my multiplatform project. Any ideas on what to do? It says that it cannot find the declarationg of LibKotlinCoroutineContextElement but in the line 986 there is a protocol with that name.
t
Update to Kotlin 1.3.41 which contains a fix for this issue
s
Yeah I know, i'm assuming that sqldelight is using 1.3.40 which causes this error to occur.. and I cant force it to use 1.3.41
t
You don’t need to “force” it to use 1.3.41. You just need to update your project to 1.3.41 and it will work.
Which Kotlin and SqlDelight versions are you using in your project?
s
Intellij idea uses 1.3.41-release-Studio3.4-1 version of Kotlin, all the other libraries use the version specified in their documentation. coroutine_version = "1.3.0-M2" ktor_version = "1.2.2" serializer_version = "1.3.41" serializer_runtime_version = "0.11.1" sqldelight_version = "1.1.4" classpath 'com.android.tools.buildG3.4.2' classpath 'com.github.dcendentsandroid maven gradle plugin2.1' classpath 'com.squareup.sqldelightgradle plugin1.1.4'
t
@Sergioedcigreja What about your Kotlin version?
It should be in your build.gradle somewhere
s
I only applied Kotlin-multiplatform.. I dont have the actual Kotlin plugin applied
t
@Sergioedcigreja what's the version of the multiplatform plugin? You need to have it set somewhere.
s
I had it set to 1.3.41 and I had no issues with iOS. When I added the sqldelight classpath to the project build.gradle it forced me to remove the version of kotlin multiplatform.. that's when the errors started
maybe sqldelight uses kotlinmultiplatform 1.3.40 and automatically aplies that version to my project.
but its all good now I found a solution to this problem