Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=17, vendor=any vendor, implementation=vendor-specific} for WINDOWS on x86_64.
No locally installed toolchains match and toolchain download repositories have not been configured.
解决方案
在build.gradle.kts中注释掉jvmToolchain 这一行
具体原因点击查看