react-native-vision-camera
react-native-vision-camera copied to clipboard
🐛 Expected directory '.../node_modules/react-native/android' to contain exactly one file, however, it contains more than one file.
What were you trying to do?
When I try to build my application he gaves me this error. React-native: 0.69.3
Reproduceable Code
* Where:
Build file 'C:\Users\CristianoA\Desktop\LoginReactTypescript\node_modules\react-native-vision-camera\android\build.gradle' line: 231
* What went wrong:
A problem occurred evaluating project ':react-native-vision-camera'.
> Expected directory 'C:\Users\CristianoA\Desktop\LoginReactTypescript\node_modules/react-native/android' to contain exactly one file, however, it contains more than one file.
What happened instead?
It doesn't buil my application, when i remove this package application works perfectly
Relevant log output
* Where:
Build file 'C:\Users\CristianoA\Desktop\LoginReactTypescript\node_modules\react-native-vision-camera\android\build.gradle' line: 231
* What went wrong:
A problem occurred evaluating project ':react-native-vision-camera'.
> Expected directory 'C:\Users\CristianoA\Desktop\LoginReactTypescript\node_modules/react-native/android' to contain exactly one file, however, it contains more than one file.
Device
Realme 9 4G
VisionCamera Version
2.14.1
Additional information
- [ ] I am using Expo
- [X] I have read the Troubleshooting Guide
- [X] I agree to follow this project's Code of Conduct
- [X] I searched for similar issues in this repository and found none.
me too
me too
See https://github.com/mrousavy/react-native-vision-camera/pull/1116
Hi, I had to apply this patch to make it work with 2.14.1
cd <project-directory>
mkdir patches
mv ~/Downloads/react-native-vision-camera+2.14.1.txt patches/react-native-vision-camera+2.14.1.patch
npm i patch-package
npx patch-package
Hope this helps you :)
Based on the PR merged: https://github.com/mrousavy/react-native-vision-camera/pull/1144/files
Hi, I had to apply this patch to make it work with 2.14.1
cd <project-directory> mkdir patches mv ~/Downloads/react-native-vision-camera+2.14.1.txt patches/react-native-vision-camera+2.14.1.patch npm i patch-package npx patch-package
Hope this helps you :)
Based on the PR merged: https://github.com/mrousavy/react-native-vision-camera/pull/1144/files
We have a forecast for the release of this release with the correction?
for me it works now with "^2.14.1"
@anderpaz - What version of react native are you on? I'm desperately trying to get this library installed. I've upgraded to react native 0.70.0, maybe that is the issue?