Looks like there's a hard validation on `android.*...
# kotlin-toolchain
s
Looks like there's a hard validation on
android.*Sdk
, and SDK 37 is not part of it:
Copy code
settings:
  android:
    minSdk: 30
    compileSdk: 37
    targetSdk: 37
Copy code
Unknown value `37`. Expected one of: [`36`, `35`, `34`, `33`, `32`, `31`, `30`, `29`, `28`, `27`, `26`, `25`, `24`, `23`, `22`, `21`]
Unknown value `37`. Expected one of: [`36`, `35`, `34`, `33`, `32`, `31`, `30`, `29`, `28`, `27`, `26`, `25`, `24`, `23`, `22`, `21`]
u
Hi! Yeah, sorry for that, it's going to be fixed in the upcoming release: KTC-5452 We'll consider once again making it an integer instead of enum to avoid such issues in the future.
s
Ahh, nice! Is there a way to specify that I want to build with the 0.12.0-dev-4089 APIs, or would I need to also update the
kotlin
CLI?
Ahh,I see there's a
kotlin update --dev
flag.
💯 1
u
You can use
kotlin update
command either with
--target-version=0.12.0-dev-4089
or with the
--dev
argument to update to the latest development version. Dev versions might be a bit unstable but we try not to break things drastically 🙂
s
Awesome, I'll give that a go! I'm mostly just trying it out in a pet project for now, so breaking changes are expected from my side. 👍
👍 1
Thanks!
That got rid of the error from
kotlin build
, although IDEA still shows it. I guess that might be expected, as its plugin maybe ships with its own schema definition?
u
Yeah, that's right. Making it an integer will also help with this forward compatibility issue. This should be resolved in 2026.2.1.
❤️ 1