Back

Kotlin SDK not working on Appwrite 1.3.x

  • 0
  • Self Hosted
  • Functions
zlmr
5 May, 2023, 19:41

Recent release of Kotlin SDK (2.0.0) added support for Appwrite 1.3.x features but also bumped Kotlin version to 1.8.0, which is great, but open-runtimes and Appwrite only supports Kotlin 1.6 for functions. So SDK is there, but it is not possible to create a function and use it - build fails with obvious message that Kotlin version is not compatible.

Am I missing something here maybe 🧐?

TL;DR
The Kotlin SDK for Appwrite was updated to version 2.0.0, which added support for Appwrite 1.3.x features but also bumped the Kotlin version to 1.8.0. However, Appwrite and open-runtimes only support Kotlin 1.6 for functions. So, currently, the only solution is to downgrade to an older version of the Kotlin SDK and not use the new features. It is possible that a runtime for Kotlin 1.8.0 will be released in the future.
safwan
5 May, 2023, 19:46

Recent release of Kotlin SDK (2.0.0) added support for Appwrite 1.3.x features but also bumped Kotlin version to 1.8.0 What do you mean by this? How did Appwrite upgrade Kotlin to 1.8.0? I'm a little confused 😅

safwan
5 May, 2023, 19:47

oh wait

safwan
5 May, 2023, 19:47

you mean the Kotlin SDK uses 1.8.0

safwan
5 May, 2023, 19:47

ah okay got it. let me see what I can find on this

safwan
5 May, 2023, 19:52

Well as you said, it seems like there is a mismatch in the supported version for cloud functions, and the latest version of the Kotlin SDK for Appwrite.

maybe they'll release a runtime for kotlin 1.8.0 soon

zlmr
5 May, 2023, 20:01

Yea exactly, SDK uses 1.8.0 but runtime only goes up to 1.6.0. Only way to use it is to downgrade to older Kotlin SDK and not use new features for now.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more