react-native-vision-camera icon indicating copy to clipboard operation
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.

Open criss02-cs opened this issue 2 years ago • 5 comments

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

criss02-cs avatar Aug 05 '22 14:08 criss02-cs

me too

1061127386 avatar Aug 06 '22 10:08 1061127386

me too

leonineli avatar Aug 08 '22 03:08 leonineli

See https://github.com/mrousavy/react-native-vision-camera/pull/1116

spsaucier avatar Aug 08 '22 17:08 spsaucier

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

react-native-vision-camera+2.14.1.txt

NastuzziSamy avatar Aug 16 '22 07:08 NastuzziSamy

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

react-native-vision-camera+2.14.1.txt

We have a forecast for the release of this release with the correction?

anderpaz avatar Aug 24 '22 16:08 anderpaz

for me it works now with "^2.14.1"

francois-spectre avatar Oct 12 '22 10:10 francois-spectre

@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?

princefishthrower avatar Oct 19 '22 10:10 princefishthrower