Language edition/toolchain drift
Kotlin 2.2 removed language version Gradle convention plugin compilation language level unsupported
Included build logic fails during Kotlin compilation after the wrapper upgrade despite unchanged application code.
Agent Quick Fix
Repair against the current Gradle 9 / Kotlin 2.2 contract, then keep the change narrow and source-backed.
Product: Gradle 9 / Kotlin 2.2
Current-contract area: Convention plugin compiled for removed Kotlin language level
Likely root cause: Included build logic fails during Kotlin compilation after the wrapper upgrade despite unchanged application code.
Repair direction: Verifier checks idiomatic migration while preserving cross-version intent where required.
Symptom
Included build logic fails during Kotlin compilation after the wrapper upgrade despite unchanged application code.
Why This Happens
Source may compile under an older edition/toolchain; current edition migration rules and tool metadata are external to the repo's immediate error context.
Common Wrong Fixes
- Changing local code without checking the current external contract.
- Retrying the same install, build, or API call with no version/source change.
- Applying a broad unsafe bypass when a narrow compatibility fix is available.
Codex Search Keywords
These are the search terms observed in a neutral Codex validation run for this failure shape.
Kotlin 2.2 removed language version Gradle convention plugin compilation language level unsupported
Kotlin 2.2 compatibility guide language version removed 1.6 1.7
site:kotlinlang.org/docs compatibility guide 2.2 language version 1.6
https://kotlinlang.org/docs/compatibility-guide-22.html