When building the Kotlin code base an error is enc...
# random
n
When building the Kotlin code base an error is encountered on a missing tool chain dependency:
Copy code
Could not determine the dependencies of task ':kotlin-stdlib:compileMainJdk7Kotlin'.
> Unable to download toolchain matching the requirements ({languageVersion=7, vendor=any, implementation=vendor-specific}) from '<https://api.foojay.io/disco/v3.0/ids/45dfb704e8dcceab434285501d74cd33/redirect>'.
   > Provisioned toolchain '/home/napperley/.gradle/jdks/zing20/zing20.09.1.0-1-jdk7.0.272-linux_x64' could not be probed.
Is there a way to resolve the issue?
r
Did you intend Java 17 rather than 7?
🚫 1
n
Java 7 still remains a dependency in the Kotlin code base, hence JDK 7 is required in order to build the code base. I am trying to build the Kotlin code base in order to add an unofficial Kotlin target (for the RP2040 chip - https://www.raspberrypi.com/documentation/microcontrollers/rp2040.html ).
👍 1
t
Add
kotlin.build.isObsoleteJdkOverrideEnabled=true
into
local.properties
file, so build will only use JDK 1.8+.
👍 1