I'm encountering an error when using OkHttp v5.1.0 with Kotlin v2.0.21. The error message is as follows:
"Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.2.0, expected version is 2.0.0."
Environment
- OkHttp version: v5.1.0
- Kotlin version: 2.0.21
- Kotlin Compiler options:
kotlin.compilerOptions.languageVersion = 1.9, kotlin.compilerOptions.apiVersion = 1.9
Steps to Reproduce
- Set up a Kotlin project with the above compiler options.
- Add OkHttp v5.1.0 as a dependency.
- Attempt to compile the project.
Additional Information
The issue does not occur with OkHttp v4.12.0.
I'm encountering an error when using OkHttp v5.1.0 with Kotlin v2.0.21. The error message is as follows:
"Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.2.0, expected version is 2.0.0."
Environment
kotlin.compilerOptions.languageVersion = 1.9,kotlin.compilerOptions.apiVersion = 1.9Steps to Reproduce
Additional Information
The issue does not occur with OkHttp v4.12.0.