Skip to content

Conversation

TheNerdGuyLulu
Copy link

Summary:

foojay-resolver-convention's version 0.5.0 is not compatible with Gradle 9. (gradle/foojay-toolchains#151)
When trying to build for Android on React Native 0.8.2, we are presented with

java.lang.NoSuchFieldError: Class org.gradle.jvm.toolchain.JvmVendorSpec does not have member field 'org.gradle.jvm.toolchain.JvmVendorSpec IBM_SEMERU'
	at org.gradle.toolchains.foojay.DistributionsKt.<clinit>(distributions.kt:16)
	at org.gradle.toolchains.foojay.FoojayApi.fetchDistributionsIfMissing(FoojayApi.kt:62)
	at org.gradle.toolchains.foojay.FoojayApi.match$foojay_resolver(FoojayApi.kt:49)
	at org.gradle.toolchains.foojay.FoojayApi.toLinks(FoojayApi.kt:41)

Changelog:

Test Plan:

After making the change, the app build without problems.

Copy link

meta-cla bot commented Oct 14, 2025

Hi @TheNerdGuyLulu!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@TheNerdGuyLulu TheNerdGuyLulu changed the title fix: upgrade foojay-resolver-convention to 1.0,0 fix: upgrade foojay-resolver-convention to 1.0.0 Oct 14, 2025
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 15, 2025
Copy link

meta-cla bot commented Oct 15, 2025

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Oct 15, 2025
@cortinico
Copy link
Contributor

I don't believe this is needed for Gradle 9.0.0
We shipped it in 0.82 with Gradle 9.0.0 and we never needed to bump this

@TheNerdGuyLulu
Copy link
Author

TheNerdGuyLulu commented Oct 15, 2025

Hi @cortinico,

It might be related to usage with openjdk@25. Apparently works fine with openjdk@21.
But I'm getting a new error with openjdk@25, can't test it.

A problem occurred evaluating project ':react-native-reanimated'.
> A problem occurred starting process 'command 'node'' * Try:

@cortinico
Copy link
Contributor

It might be related to usage with openjdk@25. Apparently works fine with openjdk@21.
But I'm getting a new error with openjdk@25, can't test it.

Open JDK 25 is not supported yet sadly

@cortinico cortinico closed this Oct 16, 2025
@cortinico cortinico added the Resolution: Answered When the issue is resolved with a simple answer label Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Resolution: Answered When the issue is resolved with a simple answer Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants