https://kotlinlang.org logo
n

nestserau

01/29/2019, 1:45 PM
I’ve started getting this error after I switched to 1.3.20 plugin:
Copy code
> Task :compileKotlinIos
warning: skipping /Users/[me]/.gradle/caches/modules-2/files-2.1/io.ktor/ktor-client-ios_debug_ios_x64/1.0.0/356fffd211e215e1625368473e25ce844a378845/ktor-client-ios.klib. The abi versions don't match. Expected '[5]', found '2'
warning: the compiler versions don't match either. Expected '[1.1.1]', found '1.0.2-release-4769'
Any way to address it?
👍 1
c

cy

01/29/2019, 1:46 PM
ktor need to be upgraded to 1.1.2
n

nestserau

01/29/2019, 2:26 PM
Did that. That’s the error I’m getting now:
Copy code
Could not resolve io.ktor:ktor-client-ios-iosx64:1.1.2.
      > Could not parse module metadata <https://jcenter.bintray.com/io/ktor/ktor-client-ios-iosx64/1.1.2/ktor-client-ios-iosx64-1.1.2.module>
         > Expected a name but was STRING at line 32 column 26 path $.variants[0].dependencies[0].version.requires
I use Gradle version 4.8.
c

cy

01/29/2019, 2:27 PM
Gradle 4.10 is required to use latest kotlin native. This is because of Gradle Metadata breaking changes
n

nestserau

01/29/2019, 2:28 PM
Thank you, will try to make it work.
So I switched to 4.10.3, but these are the errors which I now get:
Copy code
e: File.kt: (14, 8): Unresolved reference: io
e: File.kt: (20, 26): Unresolved reference: HttpClient
e: File.kt: (31, 22): Unresolved reference: ByteArrayContent
e: File.kt: (34, 13): Unresolved reference: ByteArrayContent
e: File.kt: (39, 23): Unresolved reference: HttpResponse
e: File.kt: (42, 43): Unresolved reference: body
e: File.kt: (48, 32): Unresolved reference: HttpStatusCode
Compiled ok with 1.0.0.
That happens for task
:compileKotlinMetadata
3 Views