Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build project #4123

Closed
IgorGanapolsky opened this issue Apr 4, 2024 · 2 comments
Closed

Unable to build project #4123

IgorGanapolsky opened this issue Apr 4, 2024 · 2 comments

Comments

@IgorGanapolsky
Copy link

What kind of issue is this?

This is a bug. Steps:

  1. checkout repo
  2. open repo in Android Studio Iguana (2023.2.1)
  3. compile project

EXPECTED:
project should build

ACTUAL:
compilation error -

Could not resolve all dependencies for configuration ':retrofit:compileClasspath'.
Failed to calculate the value of task ':retrofit:compileJava14Java' property 'javaCompiler'.
Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=14, vendor=AZUL, implementation=vendor-specific} for MAC_OS on aarch64.
No locally installed toolchains match and the configured toolchain download repositories aren't able to provide a match either.

@JakeWharton
Copy link
Member

You should really be using IntelliJ IDEA not Android Studio. It might work in Studio, it might not. This isn't an Android project.

I'm not sure why Azul seems to have stopped providing JDK 14. It's still available from https://github.com/mdogan/homebrew-zulu.

Aside from that, I will eventually migrate the project from using toolchains (boo!) to --release (yay!), but I haven't had the time. For now you'll have to get a JDK 14 and JDK 16 from somewhere because that's what Gradle toolchains demand. It does work on CI, but that might be because it's an x64 system not ARM.

@IgorGanapolsky
Copy link
Author

Thank you for the advice. I was under the impression that the samples are for Android, since I'm learning how to use Retrofit on Android. I misunderstood.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants