Skip to content

Commit 9fbce3e

Browse files
cortinicofacebook-github-bot
authored andcommitted
Fix build from source for 0.82 due to Gradle 9.0 (#53560)
Summary: Pull Request resolved: #53560 Since Gradle 9.0, all the projects in the path must have an existing folder. As we build :packages:react-native:ReactAndroid, we need to declare the folders for :packages and :packages:react-native as well as otherwise the build from source will fail with a missing folder exception. Changelog: [Android] [Fixed] - Fix build from source due to missing folder error on Gradle 9.0 Reviewed By: fabriziocucci Differential Revision: D81482789 fbshipit-source-id: 609b503755486e10060a0f321bd0a38bd71864a1
1 parent 7aef79b commit 9fbce3e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

packages/react-native/settings.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,12 @@ include(":packages:react-native:ReactAndroid:hermes-engine")
2929

3030
project(":packages:react-native:ReactAndroid:hermes-engine").projectDir =
3131
file("ReactAndroid/hermes-engine/")
32+
33+
// Since Gradle 9.0, all the projects in the path must have an existing folder.
34+
// As we build :packages:react-native:ReactAndroid, we need to declare the folders
35+
// for :packages and :packages:react-native as well as otherwise the build from
36+
// source will fail with a missing folder exception.
37+
38+
project(":packages").projectDir = file("/tmp")
39+
40+
project(":packages:react-native").projectDir = file("/tmp")

0 commit comments

Comments
 (0)