Error on Build.gradle
lkjlkjlkj2012 opened this issue · comments
I run the Build.gradle, but I get this error:
Could not create task ':applyRangeMap'.
Could not create task of type 'ApplyRangeMap'.
Failed to query the value of property 'javaLauncher'.
No matching toolchains found for requested specification: {languageVersion=17, vendor=any, implementation=vendor-specific}.
No locally installed toolchains match (see https://docs.gradle.org/8.1.1/userguide/toolchains.html#sec:auto_detection) and toolchain download repositories have not been configured (see https://docs.gradle.org/8.1.1/userguide/toolchains.html#sub:download_repositories).
Why?
you arent supposed to run the build.gradle file...? Are you?
./gradlew <task>
I found my solution by installing jdk17. I thought I had jdk20 and it could work for older version but I think it look for jdk17 only(from No matching toolchains found for requested specification: {languageVersion=17, vendor=any, implementation=vendor-specific}.). Idk if this will work for you but try it.
I found my solution by installing jdk17. I thought I had jdk20 and it could work for older version but I think it look for jdk17 only(from No matching toolchains found for requested specification: {languageVersion=17, vendor=any, implementation=vendor-specific}.). Idk if this will work for you but try it.
Thanks, it works for me