Skip to content

[Issue]: System Java Problem #60

Description

@kngwyu

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions