okhttp: Run build failed on apple sillicon chips
I run the project on my new MacBook pro with m1 pro, Adopt JDK download failed.
Execution failed for task ':okhttp:compileKotlin'.
> Error while evaluating property 'kotlinJavaToolchainProvider.javaVersion' of task ':okhttp:compileKotlin'
> Failed to calculate the value of property 'providedJvm$kotlin_gradle_plugin'.
> Unable to download toolchain matching these requirements: {languageVersion=11, vendor=ADOPTOPENJDK, implementation=vendor-specific}
> Unable to download toolchain. This might indicate that the combination (version, architecture, release/early access, ...) for the requested JDK is not available.
> Could not read 'https://api.adoptopenjdk.net/v3/binary/latest/11/ga/mac/aarch64/jdk/hotspot/normal/adoptopenjdk' as it does not exist.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 17 (6 by maintainers)
Thank you for your help! Unfortunately I still have same errors. Something’s not right on my side.
I am still getting this error on M1 MacBook Air with Android Studio 2022.1.1 Canary 10
I’ve changed to Intellij IDEA version 2022.3 and set SDK version to 18 and voila! Everything works now.
After #7068 & #7091, it works.
Seems we might be blocked here?
https://github.com/gradle/gradle/issues/19140 - Support “Zulu OpenJDK Discovery API” for auto provisioning toolchains https://github.com/gradle/gradle/issues/16596 - Support auto-download of Java toolchains for more vendors than just AdoptOpenJDK