Skip to content

Commit e21c25e

Browse files
janicduplessisfacebook-github-bot
authored andcommitted
Add missing toolchains plugin in react-native-gradle-plugin (#38292)
Summary: I was getting the following error when trying to run RN Tester on Android. ``` A problem occurred configuring project ':packages:react-native:ReactAndroid'. > Could not determine the dependencies of task ':react-native-gradle-plugin:compileKotlin'. > No matching toolchains found for requested specification: {languageVersion=17, vendor=any, implementation=vendor-specific} for MAC_OS on aarch64. > No locally installed toolchains match and toolchain download repositories have not been configured. ``` This is fixed by adding the `org.gradle.toolchains.foojay-resolver-convention` plugin in settings.gradle, this was done already for the root one, but not in the one in `react-native-gradle-plugin`. ## Changelog: [INTERNAL] [FIXED] - Add missing toolchains plugin in react-native-gradle-plugin Pull Request resolved: #38292 Test Plan: Build RN Tester on android Reviewed By: mdvacca Differential Revision: D47371772 Pulled By: cortinico fbshipit-source-id: 8eaa5de9559720a7b37d11b3ddceb5fb84753a40
1 parent 8ab9a77 commit e21c25e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-native-gradle-plugin/settings.gradle.kts

+2
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ pluginManagement {
1313
}
1414
}
1515

16+
plugins { id("org.gradle.toolchains.foojay-resolver-convention").version("0.5.0") }
17+
1618
rootProject.name = "react-native-gradle-plugin"

0 commit comments

Comments
 (0)