Summary
I got this error when building app by ./app target backAndForth and ./app build
FAILURE: Build failed with an exception.
- What went wrong:
Could not determine the dependencies of task ':backAndForth:packageDebug'.
Could not create task ':backAndForth:compileDebugJavaWithJavac'.
Failed to calculate the value of task ':backAndForth:compileDebugJavaWithJavac' property 'javaCompiler'.
> Toolchain installation '/usr/lib/jvm/java-21-openjdk-amd64' does not provide the required capabilities: [JAVA_COMPILER]
Current state
Build fails when ./app tries to use system instlled jdk.
Expected state
Build successes or at least it should tell me to use different jdk.
Summary
I got this error when building app by
./app target backAndForthand./app buildCould not determine the dependencies of task ':backAndForth:packageDebug'.
Current state
Build fails when ./app tries to use system instlled jdk.
Expected state
Build successes or at least it should tell me to use different jdk.