mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
fix: upgrade foojay-resolver-convention to 1.0.0 (#56210)
Summary: foojay-resolver-convention's version 0.5.0 is not compatible with Gradle 9. (https://github.com/gradle/foojay-toolchains/issues/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: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID] [CHANGED] - changed foojay-resolver-convetion version to 1.0.0 For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: https://github.com/facebook/react-native/pull/56210 Test Plan: After making the change, the app build without problems. Reviewed By: fabriziocucci Differential Revision: D98883905 Pulled By: cortinico fbshipit-source-id: 18bfbba0e6af1aee660cee13c68c20bab75506d9
This commit is contained in:
1 parent
b8149bc438
commit
664acaf441
2 files changed
+2
-2
No files matched your search
@@ -13,7 +13,7 @@ pluginManagement {
|
||||
}
|
||||
}
|
||||
|
||||
plugins { id("org.gradle.toolchains.foojay-resolver-convention").version("0.5.0") }
|
||||
plugins { id("org.gradle.toolchains.foojay-resolver-convention").version("1.0.0") }
|
||||
|
||||
include(
|
||||
":react-native-gradle-plugin",
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ dependencyResolutionManagement {
|
||||
rootProject.name = "react-native-github"
|
||||
|
||||
plugins {
|
||||
id("org.gradle.toolchains.foojay-resolver-convention").version("0.5.0")
|
||||
id("org.gradle.toolchains.foojay-resolver-convention").version("1.0.0")
|
||||
id("com.facebook.react.settings")
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user