Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'ReactCommon/CallInvoker.h' file not found #243

Open
theprashant-one opened this issue Dec 27, 2024 · 1 comment
Open

'ReactCommon/CallInvoker.h' file not found #243

theprashant-one opened this issue Dec 27, 2024 · 1 comment
Assignees

Comments

@theprashant-one
Copy link

Description

While building the Expo dev client, I am getting the error: 'ReactCommon/CallInvoker.h' file not found.

FAILED: CMakeFiles/react-native-audio-api.dir/home/expo/workingdir/build/node_modules/react-native-audio-api/common/cpp/jsi/JsiPromise.cpp.o 
  /home/expo/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android24 --sysroot=/home/expo/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Dreact_native_audio_api_EXPORTS -I/home/expo/workingdir/build/node_modules/react-native-audio-api/android/../common/cpp/AudioAPIInstaller -I/home/expo/workingdir/build/node_modules/react-native-audio-api/android/../common/cpp/HostObjects -I/home/expo/workingdir/build/node_modules/react-native-audio-api/android/../common/cpp/core -I/home/expo/workingdir/build/node_modules/react-native-audio-api/android/../common/cpp/jsi -I/home/expo/workingdir/build/node_modules/react-native-audio-api/android/../common/cpp/types -I/home/expo/workingdir/build/node_modules/react-native-audio-api/android/../common/cpp/utils -I/home/expo/workingdir/build/node_modules/react-native-audio-api/android/src/main/cpp/AudioAPIInstaller -I/home/expo/workingdir/build/node_modules/react-native-audio-api/android/src/main/cpp/AudioDecoder -I/home/expo/workingdir/build/node_modules/react-native-audio-api/android/src/main/cpp/AudioPlayer -I/home/expo/workingdir/build/node_modules/react-native-audio-api/android/src/main/cpp/OnLoad.cpp -I/home/expo/workingdir/build/node_modules/react-native/ReactCommon/jsi -I/home/expo/workingdir/build/node_modules/react-native/ReactAndroid/src/main/jni/react/jni -I/home/expo/workingdir/build/node_modules/react-native/ReactAndroid/src/main/jni/third-party/folly -I/home/expo/workingdir/build/node_modules/react-native-audio-api/android/libs/include -isystem /home/expo/.gradle/caches/8.8/transforms/d9e6f6f9d5528ab31d43deaf75bc6dce/transformed/jetified-react-android-0.75.2-debug/prefab/modules/jsi/include -isystem /home/expo/.gradle/caches/8.8/transforms/309a467e34881111ffb2dd4c300534d4/transformed/jetified-fbjni-0.6.0/prefab/modules/fbjni/include -isystem /home/expo/.gradle/caches/8.8/transforms/89fb73946edd9b4a40711317fc43659a/transformed/jetified-oboe-1.9.0/prefab/modules/oboe/include -isystem /home/expo/.gradle/caches/8.8/transforms/d9e6f6f9d5528ab31d43deaf75bc6dce/transformed/jetified-react-android-0.75.2-debug/prefab/modules/folly_runtime/include -isystem /home/expo/.gradle/caches/8.8/transforms/d9e6f6f9d5528ab31d43deaf75bc6dce/transformed/jetified-react-android-0.75.2-debug/prefab/modules/glog/include -isystem /home/expo/.gradle/caches/8.8/transforms/d9e6f6f9d5528ab31d43deaf75bc6dce/transformed/jetified-react-android-0.75.2-debug/prefab/modules/reactnativejni/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -O2 -frtti -fexceptions -Wall -fstack-protector-all -fno-limit-debug-info  -fPIC -DFOLLY_NO_CONFIG=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -DFOLLY_MOBILE=1 -DFOLLY_HAVE_RECVMMSG=1 -DFOLLY_HAVE_PTHREAD=1 -DFOLLY_HAVE_XSI_STRERROR_R=1 -std=gnu++20 -MD -MT CMakeFiles/react-native-audio-api.dir/home/expo/workingdir/build/node_modules/react-native-audio-api/common/cpp/jsi/JsiPromise.cpp.o -MF CMakeFiles/react-native-audio-api.dir/home/expo/workingdir/build/node_modules/react-native-audio-api/common/cpp/jsi/JsiPromise.cpp.o.d -o CMakeFiles/react-native-audio-api.dir/home/expo/workingdir/build/node_modules/react-native-audio-api/common/cpp/jsi/JsiPromise.cpp.o -c /home/expo/workingdir/build/node_modules/react-native-audio-api/common/cpp/jsi/JsiPromise.cpp
  In file included from /home/expo/workingdir/build/node_modules/react-native-audio-api/common/cpp/jsi/JsiPromise.cpp:1:
  /home/expo/workingdir/build/node_modules/react-native-audio-api/android/../common/cpp/jsi/JsiPromise.h:3:10: fatal error: 'ReactCommon/CallInvoker.h' file not found
  #include <ReactCommon/CallInvoker.h>
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  1 error generated.
  [19/28] Building CXX object CMakeFiles/react-native-audio-api.dir/home/expo/workingdir/build/node_modules/react-native-audio-api/common/cpp/utils/ios/FFTFrame.cpp.o
  [20/28] Building CXX object CMakeFiles/react-native-audio-api.dir/home/expo/workingdir/build/node_modules/react-native-audio-api/common/cpp/utils/android/FFTFrame.cpp.o
  [21/28] Building CXX object CMakeFiles/react-native-audio-api.dir/home/expo/workingdir/build/node_modules/react-native-audio-api/common/cpp/utils/VectorMath.cpp.o
  [22/28] Building CXX object CMakeFiles/react-native-audio-api.dir/home/expo/workingdir/build/node_modules/react-native-audio-api/common/cpp/core/StereoPannerNode.cpp.o
  [23/28] Building CXX object CMakeFiles/react-native-audio-api.dir/home/expo/workingdir/build/node_modules/react-native-audio-api/common/cpp/jsi/JsiHostObject.cpp.o
  ninja: build stopped: subcommand failed.
  
  C++ build system [build] failed while executing:
      /home/expo/Android/Sdk/cmake/3.22.1/bin/ninja \
        -C \
        /home/expo/workingdir/build/node_modules/react-native-audio-api/android/.cxx/Debug/59225541/arm64-v8a \
        react-native-audio-api
    from /home/expo/workingdir/build/node_modules/react-native-audio-api/android
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org/.
BUILD FAILED in 8m 27s
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.8/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
1902 actionable tasks: 1901 executed, 1 up-to-date
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

Steps to reproduce

While building the Expo dev client on EAS, I am getting the error: 'ReactCommon/CallInvoker.h' file not found

Snack or a link to a repository

https://snack.expo.io/

React Native Audio API version

0.3.1

React Native version

0.75.2

Platforms

Android

JavaScript runtime

Hermes

Workflow

Expo Dev Client

Architecture

Paper (Old Architecture)

Build type

Debug app & dev bundle

Device

Real device

Device model

No response

Acknowledgements

Yes

@maciejmakowski2003
Copy link
Collaborator

maciejmakowski2003 commented Jan 7, 2025

Currently, we only support new Arch. However, I will take care of providing support for the old one in following days ;))

@maciejmakowski2003 maciejmakowski2003 self-assigned this Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants