ITADN

🐛 Build fails with CMake error: Target "ReactAndroid::reactnativejni" not found in target VisionCamera

#3719ClosedSamama-Zargham 创建于 2026-03-13
🐛 bug
S
Samama-Zarghamcommented
### What's happening? Build fails with CMake error: Target "ReactAndroid::reactnativejni" not found in target VisionCamera when i sync project get this error ### Reproduceable Code ```tsx "react-native-vision-camera": "4.5.2" install this in demo project to reproduce it yarn react-native-vision-camera@4.5.2 ``` ### Relevant log output ```shell reactnativejni" but the target was not found. perhaps a find_package() call is missing for an imported target, or an alias target is missing? ``` ### Camera Device ```json { "id": "com.apple.avfoundation.avcapturedevice.built-in_video:6", "devices": [ "ultra-wide-angle-camera", "wide-angle-camera" ], "formats": null, "hardwareLevel": "full", "hasFlash": true, "hasTorch": true, "isMultiCam": true, "minZoom": 1, "neutralZoom": 2, "maxZoom": 123.75, "name": "Back Dual Wide Camera", "position": "back", "supportsFocus": true, "supportsLowLightBoost": false, "supportsRawCapture": false } ``` ### Device iphone 15 pro max ### VisionCamera Version 4.5.2 ### Can you reproduce this issue in the VisionCamera Example app? Yes, I can reproduce the same issue in the Example app here ### Additional information - [ ] I am using Expo - [ ] I have enabled Frame Processors (react-native-worklets-core) - [x] I have read the [Troubleshooting Guide](https://react-native-vision-camera.com/docs/guides/troubleshooting) - [x] I agree to follow this project's [Code of Conduct](https://github.com/mrousavy/react-native-vision-camera/blob/main/CODE_OF_CONDUCT.md) - [x] I searched for [similar issues in this repository](https://github.com/mrousavy/react-native-vision-camera/issues) and found none.
关闭于 2026-03-13 2 条评论