-
Notifications
You must be signed in to change notification settings - Fork 25k
Description
Description
RN New Arch on ubuntu-latest Ubuntu 20.04.4 LTS, AGP 7.1.1, Build Tools 31.0.0, NDK 21/24
> Task :ReactAndroid:configureNdkBuildDebug[<arch>] FAILED
C/C++: /home/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/react-native/ReactAndroid/../ReactCommon/butter/Android.mk:28: *** Android NDK: Aborting. . Stop.
FAILURE: Build failed with an exception.
Execution failed for task ':ReactAndroid:configureNdkBuildDebug[<arch>]'.
> [CXX1405] error when building with ndkBuild using /home/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/react-native/ReactAndroid/src/main/jni/react/jni/Android.mk: Build command failed.
Error while executing process /usr/local/lib/android/sdk/ndk/[21](https://github.com/leotm/react-native-template-new-architecture/runs/5997822205?check_suite_focus=true#step:13:21).4.7075529/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/home/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/react-native/ReactAndroid/src/main/jni/react/jni/Android.mk APP_ABI=arm64-v8a NDK_ALL_ABIS=arm64-v8a NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=/home/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/react-native/ReactAndroid/build/intermediates/cxx/Debug/563[25](https://github.com/leotm/react-native-template-new-architecture/runs/5997822205?check_suite_focus=true#step:13:25)o5v/obj NDK_LIBS_OUT=/home/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/react-native/ReactAndroid/build/intermediates/cxx/Debug/56325o5v/lib NDK_APPLICATION_MK=/home/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/react-native/ReactAndroid/src/main/jni/Application.mk THIRD_PARTY_NDK_DIR=/home/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/react-native/ReactAndroid/build/third-party-ndk REACT_COMMON_DIR=/home/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/react-native/ReactAndroid/../ReactCommon REACT_GENERATED_SRC_DIR=/home/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/react-native/ReactAndroid/build/generated/source REACT_SRC_DIR=/home/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react -j2 APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}
7 actionable tasks: 1 executed, 6 up-to-date
Android NDK: WARNING: Ignoring unknown import directory: /home/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/react-native/ReactAndroid/build/generated/source
Android NDK: /home/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/react-native/ReactAndroid/../ReactCommon/butter/Android.mk: Cannot find module with tag 'glog' in import path
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
Android NDK: The following directories were searched:
Android NDK:
/home/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/react-native/ReactAndroid/../ReactCommon/butter/Android.mk:[28](https://github.com/leotm/react-native-template-new-architecture/runs/5997822205?check_suite_focus=true#step:13:28): *** Android NDK: Aborting. . Stop.Full notes/logs
Tried
- 📚 Guide: Getting Started with The New Architecture (a.k.a. the Playbook) react-native-website#2879 (comment)
- build: Bump AGP to 7.1.1 and fix bundle inclusion in release mode #33057 (comment)
Edit: Ok AGP 7.0.4 works
- depending on default tasks
preDebugBuild/preReleaseBuild(also depending onprebuild) - couldn't get 7.1.1 working depending on default tasks or
prebuild - will check 7.1.0-3+ and monitor the Google AGP issue
- Gradle - mergeDexRelease - @0.68.1-nightly - minimal repro leotm/react-native-template-new-architecture#554 nearly fixed
(macos 12.3 - 12.4 Beta 2 fine locally)
Version
0.68.0-1
Output of npx react-native info
System:
OS: Linux 5.13 Ubuntu 20.04.4 LTS (Focal Fossa)
CPU: (2) x64 Intel(R) Xeon(R) Platinum 8171M CPU @ 2.60GHz
Memory: 5.80 GB / 6.78 GB
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 16.14.2 - /usr/local/bin/node
Yarn: 3.2.0 - /usr/local/bin/yarn
npm: 8.5.0 - /usr/local/bin/npm
Watchman: Not Found
SDKs:
Android SDK:
API Levels: 27, 28, 29, 30, 31, 32
Build Tools: 27.0.0, 27.0.1, 27.0.2, 27.0.3, 28.0.0, 28.0.1, 28.0.2, 28.0.3, 29.0.0, 29.0.1, 29.0.2, 29.0.3, 30.0.0, 30.0.1, 30.0.2, 30.0.3, 31.0.0, 32.0.0
Android NDK: 21.4.7075529 (always shown, even when 24.0.8215888 forced and used to build)
IDEs:
Android Studio: Not Found
Languages:
Java: 11.0.14.1 - /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.14-1/x64/bin/javac
Java: [18]...
npmPackages:
@react-native-community/cli: next => 8.0.0-alpha.0
react: experimental => 0.0.0-experimental-4de99b3ca-20220221
react-native: 0.68.0 => 0.68.1
npmGlobalPackages:
react-native: Not Found