Skip to content

fix: upgrade foojay-resolver-convention to 1.0.0#56210

Open
TheNerdGuyLulu wants to merge 2 commits intofacebook:mainfrom
TheNerdGuyLulu:main
Open

fix: upgrade foojay-resolver-convention to 1.0.0#56210
TheNerdGuyLulu wants to merge 2 commits intofacebook:mainfrom
TheNerdGuyLulu:main

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.

@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 Mar 24, 2026
@sschuberth
Copy link

I believe it should be fixed in both places:

packages/gradle-plugin/settings.gradle.kts:plugins { id("org.gradle.toolchains.foojay-resolver-convention").version("0.5.0") }
settings.gradle.kts:  id("org.gradle.toolchains.foojay-resolver-convention").version("0.5.0")

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

yes please

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. 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