MCP-Reborn icon indicating copy to clipboard operation
MCP-Reborn copied to clipboard

Error on Build.gradle

Open lkjlkjlkj2012 opened this issue 2 years ago • 4 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?

lkjlkjlkj2012 avatar Nov 19 '23 10:11 lkjlkjlkj2012

./gradlew <task>

APie357 avatar Nov 22 '23 16:11 APie357

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.

Kittithara6509611544 avatar Dec 08 '23 17:12 Kittithara6509611544

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

YarmolenkoD avatar Apr 03 '24 14:04 YarmolenkoD

If anyone runs into this in the future, I was able to solve it by installing JDK21.

nhhvhy avatar Sep 16 '25 21:09 nhhvhy