mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix build from source for 0.82 due to Gradle 9.0 (#53560)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
7aef79bd78
commit
9fbce3eff1
@@ -29,3 +29,12 @@ include(":packages:react-native:ReactAndroid:hermes-engine")
|
||||
|
||||
project(":packages:react-native:ReactAndroid:hermes-engine").projectDir =
|
||||
file("ReactAndroid/hermes-engine/")
|
||||
|
||||
// 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.
|
||||
|
||||
project(":packages").projectDir = file("/tmp")
|
||||
|
||||
project(":packages:react-native").projectDir = file("/tmp")
|
||||
|
||||
Reference in New Issue
Block a user