Your sdk and jvm tool chain version should be the same. I got the error when I was trying to create a kotlin multiplatform project