Add Ubuntu setup script and set configureOnDemand=false for New Architecture

- scripts/setup-ubuntu.sh: JDK 17, nvm/Node, Android SDK/NDK/CMake
- android/gradle.properties: avoid CMake/codegen race with New Arch

Made-with: Cursor
This commit is contained in:
NishantRajputRN
2026-04-22 13:43:53 +05:30
parent 0310beb610
commit 8d2f5b645c
2 changed files with 149 additions and 2 deletions
+4 -2
View File
@@ -22,8 +22,10 @@ org.gradle.jvmargs=-Xmx4g -Dfile.encoding=UTF-8
# Enable parallel builds
org.gradle.parallel=true
# Optional: Enable configuration on demand
org.gradle.configureondemand=true
# Must stay false for React Native New Architecture: configure-on-demand can run app
# CMake (Android-autolinking) before library projects run codegen, so
# .../node_modules/.../android/build/generated/source/codegen/jni/ never exists (CXX1429).
org.gradle.configureondemand=false
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit