mrousavy / react-native-vision-camera

📸 A powerful, high-performance React Native Camera library.
https://react-native-vision-camera.com
MIT License
7.5k stars 1.09k forks source link

🔧 Build Error in latest version of react-native 0.73.1 and targetSdkVersion = 34 #2309

Closed samsonroyquickplay closed 10 months ago

samsonroyquickplay commented 10 months ago

How were you trying to build the app?

I tried to run the app using yarn react-native run-android and the build failed

Full build logs

Execution failed for task ':react-native-vision-camera:buildCMakeDebug[arm64-v8a]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `/*/handset/node_modules/react-native-vision-camera/android/.cxx/Debug/326l4s4h/arm64-v8a'
  [1/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/OpenGLRenderer.cpp.o
  [2/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/PassThroughShader.cpp.o
  [3/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/OpenGLContext.cpp.o
  [4/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessorPlugin.cpp.o
  [5/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrame.cpp.o
  [6/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/FrameProcessorPluginHostObject.cpp.o
  [7/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/VisionCamera.cpp.o
  [8/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/FrameHostObject.cpp.o
  [9/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/VideoPipeline.cpp.o
  [10/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/JSIJNIConversion.cpp.o
  [11/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraScheduler.cpp.o
  [12/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/VisionCameraProxy.cpp.o
  [13/16] Building CXX object CMakeFiles/VisionCamera.dir/*/handset/node_modules/react-native-vision-camera/cpp/JSITypedArray.cpp.o
  [14/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o
  [15/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o
  [16/16] Linking CXX shared library ../../../../build/intermediates/cxx/Debug/326l4s4h/obj/arm64-v8a/libVisionCamera.so
  FAILED: ../../../../build/intermediates/cxx/Debug/326l4s4h/obj/arm64-v8a/libVisionCamera.so 
  : && /Users/samsonroy/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/Users/samsonroy/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -fPIC -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 -Wno-unused-variable -fstack-protector-all -fno-limit-debug-info  -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--gc-sections -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,libVisionCamera.so -o ../../../../build/intermediates/cxx/Debug/326l4s4h/obj/arm64-v8a/libVisionCamera.so CMakeFiles/VisionCamera.dir/*/handset/node_modules/react-native-vision-camera/cpp/JSITypedArray.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/VisionCamera.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/VideoPipeline.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/PassThroughShader.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/OpenGLContext.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/OpenGLRenderer.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/FrameHostObject.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/FrameProcessorPluginHostObject.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/JSIJNIConversion.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/VisionCameraProxy.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrame.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessorPlugin.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraScheduler.cpp.o  /Users/samsonroy/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/21/liblog.so  -landroid  /Users/samsonroy/.gradle/caches/transforms-3/584646f62842007117c884443f5d4262/transformed/jetified-react-android-0.73.1-debug/prefab/modules/jsi/libs/android.arm64-v8a/libjsi.so  /Users/samsonroy/.gradle/caches/transforms-3/584646f62842007117c884443f5d4262/transformed/jetified-react-android-0.73.1-debug/prefab/modules/reactnativejni/libs/android.arm64-v8a/libreactnativejni.so  /Users/samsonroy/.gradle/caches/transforms-3/7c7ebfac43f8f21d37b50ac28c04d4da/transformed/jetified-fbjni-0.5.1/prefab/modules/fbjni/libs/android.arm64-v8a/libfbjni.so  -lGLESv2  -lEGL  -latomic -lm && :
  ld: error: undefined symbol: RNWorklet::JsiWorkletContext::getWorkletRuntime()
  >>> referenced by JFrameProcessor.cpp:37 (/*/handset/node_modules/react-native-vision-camera/android/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp:37)
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(vision::JFrameProcessor::callWithFrameHostObject(std::__ndk1::shared_ptr<vision::FrameHostObject> const&) const)
  >>> referenced by JVisionCameraProxy.cpp:57 (/*/handset/node_modules/react-native-vision-camera/android/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp:57)
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o:(vision::JVisionCameraProxy::~JVisionCameraProxy())

  ld: error: undefined symbol: RNWorklet::JsiWorkletContext::invokeOnJsThread(std::__ndk1::function<void (facebook::jsi::Runtime&)>&&)
  >>> referenced by JFrameProcessor.cpp:50 (/*/handset/node_modules/react-native-vision-camera/android/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp:50)
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(vision::JFrameProcessor::callWithFrameHostObject(std::__ndk1::shared_ptr<vision::FrameHostObject> const&) const)
  >>> referenced by WKTJsiWorklet.h:369 (/*/handset/node_modules/react-native-worklets-core/android/build/headers/rnworklets/react-native-worklets-core/WKTJsiWorklet.h:369)
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(RNWorklet::WorkletInvoker::~WorkletInvoker())

  ld: error: undefined symbol: RNWorklet::JsiWorkletContext::runtimeMappings
  >>> referenced by __tree:0 (/Users/samsonroy/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/__tree:0)
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(RNWorklet::WorkletInvoker::call(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long))
  >>> referenced by __tree:0 (/Users/samsonroy/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/__tree:0)
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(RNWorklet::WorkletInvoker::call(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long))

  ld: error: undefined symbol: RNWorklet::JsiWorkletContext::invokeOnWorkletThread(std::__ndk1::function<void (RNWorklet::JsiWorkletContext*, facebook::jsi::Runtime&)>&&)
  >>> referenced by WKTJsiWorklet.h:372 (/*/handset/node_modules/react-native-worklets-core/android/build/headers/rnworklets/react-native-worklets-core/WKTJsiWorklet.h:372)
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(RNWorklet::WorkletInvoker::~WorkletInvoker())

  ld: error: undefined symbol: RNWorklet::JsiWorkletContext::defaultInstance
  >>> referenced by memory:3887 (/Users/samsonroy/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/memory:3887)
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(RNWorklet::JsiWorkletContext::getDefaultInstance())
  >>> referenced by memory:3887 (/Users/samsonroy/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/memory:3887)
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(RNWorklet::JsiWorkletContext::getDefaultInstance())

  ld: error: undefined symbol: RNWorklet::JsiHostObject::JsiHostObject()
  >>> referenced by WKTJsiWorkletContext.h:31 (/*/handset/node_modules/react-native-worklets-core/android/build/headers/rnworklets/react-native-worklets-core/WKTJsiWorkletContext.h:31)
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(RNWorklet::JsiWorkletContext::getDefaultInstance())
  >>> referenced by WKTJsiWorklet.h:77 (/*/handset/node_modules/react-native-worklets-core/android/build/headers/rnworklets/react-native-worklets-core/WKTJsiWorklet.h:77)
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o:(RNWorklet::JsiWorklet::JsiWorklet(facebook::jsi::Runtime&, facebook::jsi::Value const&))

  ld: error: undefined symbol: vtable for RNWorklet::JsiWorkletContext
  >>> referenced by WKTJsiWorkletContext.h:31 (/*/handset/node_modules/react-native-worklets-core/android/build/headers/rnworklets/react-native-worklets-core/WKTJsiWorkletContext.h:31)
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(RNWorklet::JsiWorkletContext::getDefaultInstance())
  >>> referenced by WKTJsiWorkletContext.h:31 (/*/handset/node_modules/react-native-worklets-core/android/build/headers/rnworklets/react-native-worklets-core/WKTJsiWorkletContext.h:31)
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(RNWorklet::JsiWorkletContext::getDefaultInstance())
  >>> the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction)

  ld: error: undefined symbol: RNWorklet::JsiWorkletContext::~JsiWorkletContext()
  >>> referenced by memory:2252 (/Users/samsonroy/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/memory:2252)
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(std::__ndk1::__shared_ptr_emplace<RNWorklet::JsiWorkletContext, std::__ndk1::allocator<RNWorklet::JsiWorkletContext> >::~__shared_ptr_emplace())
  >>> referenced by memory:2252 (/Users/samsonroy/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/memory:2252)
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(std::__ndk1::__shared_ptr_emplace<RNWorklet::JsiWorkletContext, std::__ndk1::allocator<RNWorklet::JsiWorkletContext> >::~__shared_ptr_emplace())

  ld: error: undefined symbol: RNWorklet::JsiWorkletContext::JsiWorkletContext(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, facebook::jsi::Runtime*, std::__ndk1::function<void (std::__ndk1::function<void ()>&&)>, std::__ndk1::function<void (std::__ndk1::function<void ()>&&)>)
  >>> referenced by memory:2278 (/Users/samsonroy/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/memory:2278)
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o:(vision::JVisionCameraProxy::JVisionCameraProxy(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::JVisionCameraProxy, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*> const&, facebook::jsi::Runtime*, std::__ndk1::shared_ptr<facebook::react::CallInvoker> const&, facebook::jni::basic_strong_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::JVisionCameraScheduler, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*, facebook::jni::GlobalReferenceAllocator> const&))

  ld: error: undefined symbol: RNWorklet::JsiHostObject::~JsiHostObject()
  >>> referenced by WKTJsiWorklet.h:79 (/*/handset/node_modules/react-native-worklets-core/android/build/headers/rnworklets/react-native-worklets-core/WKTJsiWorklet.h:79)
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o:(RNWorklet::JsiWorklet::JsiWorklet(facebook::jsi::Runtime&, facebook::jsi::Value const&))
  >>> referenced by WKTJsiWorklet.h:74 (/*/handset/node_modules/react-native-worklets-core/android/build/headers/rnworklets/react-native-worklets-core/WKTJsiWorklet.h:74)
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o:(RNWorklet::JsiWorklet::~JsiWorklet())

  ld: error: undefined symbol: RNWorklet::JsiWrapper::wrap(facebook::jsi::Runtime&, facebook::jsi::Value const&, RNWorklet::JsiWrapper*)
  >>> referenced by WKTJsiWrapper.h:62 (/*/handset/node_modules/react-native-worklets-core/android/build/headers/rnworklets/react-native-worklets-core/WKTJsiWrapper.h:62)
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o:(RNWorklet::JsiWorklet::createWorklet(facebook::jsi::Runtime&, std::__ndk1::shared_ptr<facebook::jsi::Function>))

  ld: error: undefined symbol: RNWorklet::JsiHostObject::get(facebook::jsi::Runtime&, facebook::jsi::PropNameID const&)
  >>> referenced by JVisionCameraProxy.cpp
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o:(vtable for RNWorklet::JsiWorklet)

  ld: error: undefined symbol: RNWorklet::JsiHostObject::set(facebook::jsi::Runtime&, facebook::jsi::PropNameID const&, facebook::jsi::Value const&)
  >>> referenced by JVisionCameraProxy.cpp
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o:(vtable for RNWorklet::JsiWorklet)

  ld: error: undefined symbol: RNWorklet::JsiHostObject::getPropertyNames(facebook::jsi::Runtime&)
  >>> referenced by JVisionCameraProxy.cpp
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o:(vtable for RNWorklet::JsiWorklet)

  ld: error: undefined symbol: typeinfo for RNWorklet::JsiHostObject
  >>> referenced by JVisionCameraProxy.cpp
  >>>               CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o:(typeinfo for RNWorklet::JsiWorklet)
  clang++: error: linker command failed with exit code 1 (use -v to see invocation)
  ninja: build stopped: subcommand failed.

  C++ build system [build] failed while executing:
      /Users/samsonroy/Library/Android/sdk/cmake/3.22.1/bin/ninja \
        -C \
        /*/handset/node_modules/react-native-vision-camera/android/.cxx/Debug/326l4s4h/arm64-v8a \
        VisionCamera
    from /*/handset/node_modules/react-native-vision-camera/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 2m 50s
error Failed to install the app. Command failed with exit code 1: ./gradlew app:installProd -PreactNativeDevServerPort=8081
warn Package rn-fetch-blob contains invalid configuration: "dependency.hooks" is not allowed. Please verify it's properly linked using "npx react-native config" command and contact the package maintainers about this.
Recrawled this watch 9 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del '/*' ; watchman watch-project '/*'` /*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:3423:18: warning: the variable "DebuggerInternal" was not declared in function "__shouldPauseOnThrow" typeof DebuggerInternal !== 'undefined' && ^~~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:5033:108: warning: the variable "nativeFabricUIManager" was not declared in function "onChange"
...lInstanceHandle ? (from && nativeFabricUIManager.setIsJSResponder(from.sta... ^~~~~~~~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:9393:30: warning: the variable "__REACT_DEVTOOLS_GLOBAL_HOOK__" was not declared in anonymous function " 164#" if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:11705:5: warning: the variable "setImmediate" was not declared in function "handleResolved" setImmediate(function () { ^~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:15974:12: warning: the variable "fetch" was not declared in anonymous function " 405#" fetch: fetch, ^~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:15975:14: warning: the variable "Headers" was not declared in anonymous function " 405#" Headers: Headers, ^~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:15976:14: warning: the variable "Request" was not declared in anonymous function " 405#" Request: Request, ^~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:15977:15: warning: the variable "Response" was not declared in anonymous function " 405#" Response: Response ^~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:16134:24: warning: the variable "FileReader" was not declared in function "readBlobAsArrayBuffer" var reader = new FileReader(); ^~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:16185:36: warning: the variable "Blob" was not declared in anonymous function " 416#" } else if (support.blob && Blob.prototype.isPrototypeOf(body)) { ^~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:16187:40: warning: the variable "FormData" was not declared in anonymous function " 416#" } else if (support.formData && FormData.prototype.isPrototypeOf(body)) { ^~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:16189:44: warning: the variable "URLSearchParams" was not declared in anonymous function " 416#"
...e if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body... ^~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:16308:26: warning: the variable "AbortController" was not declared in anonymous function " 422#" var ctrl = new AbortController(); ^~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:16440:23: warning: the variable "XMLHttpRequest" was not declared in anonymous function " 426#" var xhr = new XMLHttpRequest(); ^~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:15987:71: warning: the variable "self" was not declared in anonymous function " 408#"
...undefined' && globalThis || typeof self !== 'undefined' && self || ^~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:26179:27: warning: the variable "performance" was not declared in anonymous function " 692#" if ("object" === typeof performance && "function" === typeof performance.no... ^~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:26202:26: warning: the variable "navigator" was not declared in anonymous function " 692#" "undefined" !== typeof navigator && undefined !== navigator.scheduling && u... ^~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:26312:37: warning: the variable "MessageChannel" was not declared in anonymous function " 692#" };else if ("undefined" !== typeof MessageChannel) { ^~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:26327:34: warning: the variable "nativeRuntimeScheduler" was not declared in anonymous function " 692#"
... = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler.... ^~~~~~~~~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:35607:34: warning: the variable "requestAnimationFrame" was not declared in function "start 9#"
... this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); ^~~~~~~~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:61511:19: warning: the variable "_getAnimationTimestamp" was not declared in function "handleAndFlushAnimationFrame 1#" var now = _getAnimationTimestamp(); ^~~~~~~~~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:61631:11: warning: the variable "_WORKLET" was not declared in function "runOnRuntime" if (_WORKLET) { ^~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:61636:18: warning: the variable "_scheduleOnRuntime" was not declared in anonymous function " 1633#" return _scheduleOnRuntime(workletRuntime, (0, _$$_REQUIRE(_dependen... ^~~~~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:62474:26: warning: Direct call to eval(), but lexical scope is not supported. workletFun = eval('(' + initData.code + '\n)'); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:62783:20: warning: the variable "_makeShareableClone" was not declared in function "cloneRecursive" return _makeShareableClone(value); ^~~~~~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:63264:9: warning: the variable "_scheduleOnJS" was not declared in anonymous function " 1703#" _scheduleOnJS(fun, args.length > 0 ? ^~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:63384:13: warning: the variable "_updateDataSynchronously" was not declared in function "set _value 1#" _updateDataSynchronously(syncDataHolder, (0, _$$_REQUIRE(_depende... ^~~~~~~~~~~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:64018:9: warning: the variable "_notifyAboutProgress" was not declared in anonymous function " 1731#" _notifyAboutProgress(tag, sharedValue.value, isSharedTransition); ^~~~~~~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:64036:7: warning: the variable "_notifyAboutEnd" was not declared in function "stopObservingProgress" _notifyAboutEnd(tag, removeView); ^~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:69344:11: warning: the variable "_updatePropsFabric" was not declared in function "flush" _updatePropsFabric(operations); ^~~~~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:69373:11: warning: the variable "_updatePropsPaper" was not declared in function "flush 1#" _updatePropsPaper(operations); ^~~~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:78849:18: warning: the variable "message" was not declared in anonymous function " 2337#" return message; ^~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:78881:5: warning: the variable "jest" was not declared in function "beforeTest" jest.useFakeTimers(); ^~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:79015:7: warning: the variable "_dispatchCommandFabric" was not declared in function "dispatchCommandFabric" _dispatchCommandFabric(shadowNodeWrapper, commandName, args); ^~~~~~~~~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:79033:7: warning: the variable "_dispatchCommandPaper" was not declared in function "dispatchCommandPaper" _dispatchCommandPaper(viewTag, commandName, args); ^~~~~~~~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:79137:22: warning: the variable "_measureFabric" was not declared in function "measureFabric" var measured = _measureFabric(viewTag); ^~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:79167:22: warning: the variable "_measurePaper" was not declared in function "measurePaper" var measured = _measurePaper(viewTag); ^~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:79249:7: warning: the variable "_scrollToPaper" was not declared in function "scrollToPaper" _scrollToPaper(viewTag, x, y, animated); ^~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:79289:7: warning: the variable "_setGestureState" was not declared in function "setGestureStateNative" _setGestureState(handlerTag, newState); ^~~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:83352:45: warning: the variable "structuredClone" was not declared in function "handleLayoutTransition"
...ormCopy = existingTransform ? structuredClone(existingTransform) : []; ^~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:83733:7: warning: the variable "_removeFromPropsRegistry" was not declared in function "removeFromPropsRegistryOnUI" _removeFromPropsRegistry(viewTags); ^~~~~~~~~~~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:142374:10: warning: the variable "HTMLElement" was not declared in anonymous function " 3933#" typeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache__default["d... ^~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:158188:76: warning: the variable "Buffer" was not declared in function "convertValue"
... 'function' ? new Blob([value]) : Buffer.from(value); ^~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:159427:56: warning: the variable "btoa" was not declared in function "dispatchXhrRequest"
...rs.set('Authorization', 'Basic ' + btoa(username + ':' + password)); ^~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:175426:31: warning: the variable "normalizeDigits" was not declared in function "checkNumberGroupingIsValid" var normalizedCandidate = normalizeDigits(candidate, true ^~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:175433:28: warning: the variable "MetadataManager" was not declared in function "checkNumberGroupingIsValid" var alternateFormats = MetadataManager.getAlternateFormatsForCountry(numb... ^~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:175434:37: warning: the variable "util" was not declared in function "checkNumberGroupingIsValid" var nationalSignificantNumber = util.getNationalSignificantNumber(number); ^~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:175468:25: warning: the variable "formatNumber" was not declared in function "getNationalNumberGroups" var rfc3966Format = formatNumber(number, 'RFC3966', metadata); // We remo... ^~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:175481:53: warning: the variable "NON_DIGITS_PATTERN" was not declared in function "allNumberGroupsAreExactlyPresent"
...= normalizedCandidate.split(NON_DIGITS_PATTERN); // Set this to the last g... ^~~~~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:175507:43: warning: the variable "CountryCodeSource" was not declared in function "allNumberGroupsRemainGrouped"
...r.getCountryCodeSource() !== CountryCodeSource.FROM_DEFAULT_COUNTRY) { ^~~~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:175529:65: warning: the variable "Character" was not declared in function "allNumberGroupsRemainGrouped"
...rRegion(region, true) != null && Character.isDigit(normalizedCandidate.cha... ^~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:200773:9: warning: the variable "cancelAnimationFrame" was not declared in anonymous function " 6686#" cancelAnimationFrame(this.renderAheadUpdateCallbackId); ^~~~~~~~~~~~~~~~~~~~
/*/handset/android/app/build/generated/assets/createBundleProdJsAndAssets/index.android.bundle:346605:42: warning: the variable "Element" was not declared in function "equal"
...f (hasElementType && a instanceof Element && b instanceof Element) return ... ^~~~~~~
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /*/handset/node_modules/hyper-sdk-react/android/src/main/java/in/juspay/hypersdkreact/HyperSdkReactModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /*/handset/node_modules/lottie-react-native/src/android/src/main/java/com/airbnb/android/react/lottie/LottieAnimationViewManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /*/handset/node_modules/lottie-react-native/src/android/src/main/java/com/airbnb/android/react/lottie/LottieAnimationViewManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/*/handset/node_modules/newrelic-react-native-agent/android/src/main/java/com/NewRelic/NRMModularAgentModule.java:425: warning: [unchecked] unchecked cast Map<String, Object> stackFramesMap = (Map<String, Object>) exceptionMap.get("stackFrames"); ^ required: Map<String,Object> found: Object
/*/handset/node_modules/newrelic-react-native-agent/android/src/main/java/com/NewRelic/NRMModularAgentModule.java:437: warning: [unchecked] unchecked cast Map<String, Object> element = (Map<String, Object>) stackFrameMap.get(Integer.toString(i)); ^ required: Map<String,Object> found: Object
2 warnings
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /*/handset/node_modules/@react-native-async-storage/async-storage/android/src/javaPackage/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /*/handset/node_modules/@react-native-clipboard/clipboard/android/src/main/java/com/reactnativecommunity/clipboard/ClipboardPackage.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /*/handset/node_modules/@react-native-community/slider/android/src/oldarch/java/com/reactnativecommunity/slider/ReactSliderManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /*/handset/node_modules/@invertase/react-native-apple-authentication/android/src/main/java/com/RNAppleAuthentication/AppleAuthenticationAndroidModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: [2] Wrote GeneratedAppGlideModule with: [com.bumptech.glide.integration.okhttp3.OkHttpLibraryGlideModule, com.dylanvann.fastimage.FastImageOkHttpProgressGlideModule]
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/*/handset/node_modules/react-native-fbsdk-next/android/src/main/java/com/facebook/reactnative/androidsdk/FBProfileModule.java:50: warning: non-varargs call of varargs method with inexact argument type for last parameter; callback.invoke(null); ^ cast to Object for a varargs call cast to Object[] for a non-varargs call and to suppress this warning
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /*/handset/node_modules/react-native-fbsdk-next/android/src/main/java/com/facebook/reactnative/androidsdk/Utility.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /*/handset/node_modules/@react-native-firebase/crashlytics/android/src/main/java/io/invertase/firebase/crashlytics/ReactNativeFirebaseCrashlyticsModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /*/handset/node_modules/@react-native-google-signin/google-signin/android/src/main/java/com/reactnativegooglesignin/RNGoogleSigninModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /*/handset/node_modules/@react-native-google-signin/google-signin/android/src/main/java/com/reactnativegooglesignin/RNGoogleSigninModule.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /*/handset/node_modules/react-native-localization/android/src/main/java/com/babisoft/ReactNativeLocalization/ReactNativeLocalization.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /*/handset/node_modules/react-native-navigation-bar-color/android/src/main/java/com/thebylito/navigationbarcolor/NavigationBarColorModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /*/handset/node_modules/react-native-orientation-locker/android/src/main/java/org/wonday/orientation/OrientationModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /*/handset/node_modules/react-native-permissions/android/src/main/java/com/zoontek/rnpermissions/RNPermissionsPackage.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /*/handset/node_modules/react-native-share/android/src/main/java/cl/json/social/TargetChosenReceiver.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/*/handset/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/RNSVGRenderableManager.java:11: warning: [removal] StandardCharsets in com.facebook.react.common has been deprecated and marked for removal
import static com.facebook.react.common.StandardCharsets.UTF_8; ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
Note: /*/handset/node_modules/react-native-system-setting/android/src/main/java/com/ninty/system/setting/SystemSetting.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /*/handset/node_modules/react-native-vector-icons/android/src/main/java/com/oblador/vectoricons/VectorIconsModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /*/handset/node_modules/@sayem314/react-native-keep-awake/android/src/main/java/com/sayem/keepawake/KCKeepAwakePackage.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /*/handset/node_modules/react-native-safe-area-context/android/src/paper/java/com/th3rdwave/safeareacontext/NativeSafeAreaContextSpec.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /*/handset/node_modules/sp-react-native-in-app-updates/android/src/main/java/com/sudoplz/rninappupdates/SpReactNativeInAppUpdatesModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details. FAILURE: Build failed with an exception. * What went wrong:
Execution failed for task ':react-native-vision-camera:buildCMakeDebug[arm64-v8a]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `/*/handset/node_modules/react-native-vision-camera/android/.cxx/Debug/326l4s4h/arm64-v8a' [1/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/OpenGLRenderer.cpp.o [2/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/PassThroughShader.cpp.o [3/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/OpenGLContext.cpp.o [4/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessorPlugin.cpp.o [5/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrame.cpp.o [6/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/FrameProcessorPluginHostObject.cpp.o [7/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/VisionCamera.cpp.o [8/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/FrameHostObject.cpp.o [9/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/VideoPipeline.cpp.o [10/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/JSIJNIConversion.cpp.o [11/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraScheduler.cpp.o [12/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/VisionCameraProxy.cpp.o [13/16] Building CXX object CMakeFiles/VisionCamera.dir/*/handset/node_modules/react-native-vision-camera/cpp/JSITypedArray.cpp.o [14/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o [15/16] Building CXX object CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o [16/16] Linking CXX shared library ../../../../build/intermediates/cxx/Debug/326l4s4h/obj/arm64-v8a/libVisionCamera.so FAILED: ../../../../build/intermediates/cxx/Debug/326l4s4h/obj/arm64-v8a/libVisionCamera.so : && /Users/samsonroy/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/Users/samsonroy/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -fPIC -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 -Wno-unused-variable -fstack-protector-all -fno-limit-debug-info -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--gc-sections -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,libVisionCamera.so -o ../../../../build/intermediates/cxx/Debug/326l4s4h/obj/arm64-v8a/libVisionCamera.so CMakeFiles/VisionCamera.dir/*/handset/node_modules/react-native-vision-camera/cpp/JSITypedArray.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/VisionCamera.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/VideoPipeline.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/PassThroughShader.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/OpenGLContext.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/OpenGLRenderer.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/FrameHostObject.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/FrameProcessorPluginHostObject.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/JSIJNIConversion.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/VisionCameraProxy.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrame.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessorPlugin.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraScheduler.cpp.o /Users/samsonroy/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/21/liblog.so -landroid /Users/samsonroy/.gradle/caches/transforms-3/584646f62842007117c884443f5d4262/transformed/jetified-react-android-0.73.1-debug/prefab/modules/jsi/libs/android.arm64-v8a/libjsi.so /Users/samsonroy/.gradle/caches/transforms-3/584646f62842007117c884443f5d4262/transformed/jetified-react-android-0.73.1-debug/prefab/modules/reactnativejni/libs/android.arm64-v8a/libreactnativejni.so /Users/samsonroy/.gradle/caches/transforms-3/7c7ebfac43f8f21d37b50ac28c04d4da/transformed/jetified-fbjni-0.5.1/prefab/modules/fbjni/libs/android.arm64-v8a/libfbjni.so -lGLESv2 -lEGL -latomic -lm && : ld: error: undefined symbol: RNWorklet::JsiWorkletContext::getWorkletRuntime() >>> referenced by JFrameProcessor.cpp:37 (/*/handset/node_modules/react-native-vision-camera/android/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp:37) >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(vision::JFrameProcessor::callWithFrameHostObject(std::__ndk1::shared_ptr<vision::FrameHostObject> const&) const) >>> referenced by JVisionCameraProxy.cpp:57 (/*/handset/node_modules/react-native-vision-camera/android/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp:57) >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o:(vision::JVisionCameraProxy::~JVisionCameraProxy()) ld: error: undefined symbol: RNWorklet::JsiWorkletContext::invokeOnJsThread(std::__ndk1::function<void (facebook::jsi::Runtime&)>&&) >>> referenced by JFrameProcessor.cpp:50 (/*/handset/node_modules/react-native-vision-camera/android/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp:50) >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(vision::JFrameProcessor::callWithFrameHostObject(std::__ndk1::shared_ptr<vision::FrameHostObject> const&) const) >>> referenced by WKTJsiWorklet.h:369 (/*/handset/node_modules/react-native-worklets-core/android/build/headers/rnworklets/react-native-worklets-core/WKTJsiWorklet.h:369) >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(RNWorklet::WorkletInvoker::~WorkletInvoker()) ld: error: undefined symbol: RNWorklet::JsiWorkletContext::runtimeMappings >>> referenced by __tree:0 (/Users/samsonroy/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/__tree:0) >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(RNWorklet::WorkletInvoker::call(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)) >>> referenced by __tree:0 (/Users/samsonroy/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/__tree:0) >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(RNWorklet::WorkletInvoker::call(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)) ld: error: undefined symbol: RNWorklet::JsiWorkletContext::invokeOnWorkletThread(std::__ndk1::function<void (RNWorklet::JsiWorkletContext*, facebook::jsi::Runtime&)>&&) >>> referenced by WKTJsiWorklet.h:372 (/*/handset/node_modules/react-native-worklets-core/android/build/headers/rnworklets/react-native-worklets-core/WKTJsiWorklet.h:372) >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(RNWorklet::WorkletInvoker::~WorkletInvoker()) ld: error: undefined symbol: RNWorklet::JsiWorkletContext::defaultInstance >>> referenced by memory:3887 (/Users/samsonroy/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/memory:3887) >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(RNWorklet::JsiWorkletContext::getDefaultInstance()) >>> referenced by memory:3887 (/Users/samsonroy/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/memory:3887) >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(RNWorklet::JsiWorkletContext::getDefaultInstance()) ld: error: undefined symbol: RNWorklet::JsiHostObject::JsiHostObject() >>> referenced by WKTJsiWorkletContext.h:31 (/*/handset/node_modules/react-native-worklets-core/android/build/headers/rnworklets/react-native-worklets-core/WKTJsiWorkletContext.h:31) >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(RNWorklet::JsiWorkletContext::getDefaultInstance()) >>> referenced by WKTJsiWorklet.h:77 (/*/handset/node_modules/react-native-worklets-core/android/build/headers/rnworklets/react-native-worklets-core/WKTJsiWorklet.h:77) >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o:(RNWorklet::JsiWorklet::JsiWorklet(facebook::jsi::Runtime&, facebook::jsi::Value const&)) ld: error: undefined symbol: vtable for RNWorklet::JsiWorkletContext >>> referenced by WKTJsiWorkletContext.h:31 (/*/handset/node_modules/react-native-worklets-core/android/build/headers/rnworklets/react-native-worklets-core/WKTJsiWorkletContext.h:31) >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(RNWorklet::JsiWorkletContext::getDefaultInstance()) >>> referenced by WKTJsiWorkletContext.h:31 (/*/handset/node_modules/react-native-worklets-core/android/build/headers/rnworklets/react-native-worklets-core/WKTJsiWorkletContext.h:31) >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(RNWorklet::JsiWorkletContext::getDefaultInstance()) >>> the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction) ld: error: undefined symbol: RNWorklet::JsiWorkletContext::~JsiWorkletContext() >>> referenced by memory:2252 (/Users/samsonroy/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/memory:2252) >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(std::__ndk1::__shared_ptr_emplace<RNWorklet::JsiWorkletContext, std::__ndk1::allocator<RNWorklet::JsiWorkletContext> >::~__shared_ptr_emplace()) >>> referenced by memory:2252 (/Users/samsonroy/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/memory:2252) >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JFrameProcessor.cpp.o:(std::__ndk1::__shared_ptr_emplace<RNWorklet::JsiWorkletContext, std::__ndk1::allocator<RNWorklet::JsiWorkletContext> >::~__shared_ptr_emplace()) ld: error: undefined symbol: RNWorklet::JsiWorkletContext::JsiWorkletContext(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, facebook::jsi::Runtime*, std::__ndk1::function<void (std::__ndk1::function<void ()>&&)>, std::__ndk1::function<void (std::__ndk1::function<void ()>&&)>) >>> referenced by memory:2278 (/Users/samsonroy/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/memory:2278) >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o:(vision::JVisionCameraProxy::JVisionCameraProxy(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::JVisionCameraProxy, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*> const&, facebook::jsi::Runtime*, std::__ndk1::shared_ptr<facebook::react::CallInvoker> const&, facebook::jni::basic_strong_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::JVisionCameraScheduler, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*, facebook::jni::GlobalReferenceAllocator> const&)) ld: error: undefined symbol: RNWorklet::JsiHostObject::~JsiHostObject() >>> referenced by WKTJsiWorklet.h:79 (/*/handset/node_modules/react-native-worklets-core/android/build/headers/rnworklets/react-native-worklets-core/WKTJsiWorklet.h:79) >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o:(RNWorklet::JsiWorklet::JsiWorklet(facebook::jsi::Runtime&, facebook::jsi::Value const&)) >>> referenced by WKTJsiWorklet.h:74 (/*/handset/node_modules/react-native-worklets-core/android/build/headers/rnworklets/react-native-worklets-core/WKTJsiWorklet.h:74) >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o:(RNWorklet::JsiWorklet::~JsiWorklet()) ld: error: undefined symbol: RNWorklet::JsiWrapper::wrap(facebook::jsi::Runtime&, facebook::jsi::Value const&, RNWorklet::JsiWrapper*) >>> referenced by WKTJsiWrapper.h:62 (/*/handset/node_modules/react-native-worklets-core/android/build/headers/rnworklets/react-native-worklets-core/WKTJsiWrapper.h:62) >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o:(RNWorklet::JsiWorklet::createWorklet(facebook::jsi::Runtime&, std::__ndk1::shared_ptr<facebook::jsi::Function>)) ld: error: undefined symbol: RNWorklet::JsiHostObject::get(facebook::jsi::Runtime&, facebook::jsi::PropNameID const&) >>> referenced by JVisionCameraProxy.cpp >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o:(vtable for RNWorklet::JsiWorklet) ld: error: undefined symbol: RNWorklet::JsiHostObject::set(facebook::jsi::Runtime&, facebook::jsi::PropNameID const&, facebook::jsi::Value const&) >>> referenced by JVisionCameraProxy.cpp >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o:(vtable for RNWorklet::JsiWorklet) ld: error: undefined symbol: RNWorklet::JsiHostObject::getPropertyNames(facebook::jsi::Runtime&) >>> referenced by JVisionCameraProxy.cpp >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o:(vtable for RNWorklet::JsiWorklet) ld: error: undefined symbol: typeinfo for RNWorklet::JsiHostObject >>> referenced by JVisionCameraProxy.cpp >>> CMakeFiles/VisionCamera.dir/src/main/cpp/frameprocessor/java-bindings/JVisionCameraProxy.cpp.o:(typeinfo for RNWorklet::JsiWorklet) clang++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. C++ build system [build] failed while executing: /Users/samsonroy/Library/Android/sdk/cmake/3.22.1/bin/ninja \ -C \ /*/handset/node_modules/react-native-vision-camera/android/.cxx/Debug/326l4s4h/arm64-v8a \ VisionCamera from /*/handset/node_modules/react-native-vision-camera/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 2m 50s.
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.

Project dependencies

"dependencies": {
    "react-native": "0.73.1",
    "react-native-reanimated": "3.6.1",
    "react-native-vision-camera": "3.6.17",
    "react-native-worklets-core": "^0.2.4",
}

VisionCamera Version

3.6.17

Target platforms

Android

Operating system

MacOS

Can you build the VisionCamera Example app?

No, I cannot build the Example app either

Additional information

samsonroyquickplay commented 10 months ago

@mrousavy Can you take a look at this ?

KraljSamo commented 10 months ago

Also experiencing this on with:

    "react": "18.2.0",
    "react-native": "0.72.5",
    "react-native-vision-camera": "3.6.17",
    "react-native-worklets-core": "0.2.4",
    ext {
        buildToolsVersion = "33.0.0"
        minSdkVersion = 26
        compileSdkVersion = 33
        targetSdkVersion = 33
        kotlinVersion = "1.8.20"

        // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
        ndkVersion = "23.1.7779620"
    }
KraljSamo commented 10 months ago

This fixed the problem:

https://github.com/mrousavy/react-native-vision-camera/issues/2290#issuecomment-1856263064

./android/gradlew clean
rm -rf android/.gradle android/.idea android/app/build android/build
rm -rf package-lock.json yarn.lock node_modules
yarn   # or `npm i`
samsonroyquickplay commented 10 months ago

"dependencies": { "react-native": "0.73.1", "react-native-reanimated": "3.6.1", "react-native-vision-camera": "3.6.16", "react-native-worklets-core": "^0.2.4", }

Downgrading from 3.6.17 to 3.6.16 fixed the above issue