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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Unable to build in react native 0.69.1 #1134

Closed
3 of 4 tasks
rvuyyuru1 opened this issue Jul 11, 2022 · 29 comments
Closed
3 of 4 tasks

馃悰 Unable to build in react native 0.69.1 #1134

rvuyyuru1 opened this issue Jul 11, 2022 · 29 comments
Labels
馃悰 bug Something isn't working

Comments

@rvuyyuru1
Copy link

What were you trying to do?

error Failed to install the app. Make sure you have the Android development environment set up:

FAILURE: Build failed with an exception.

..\node_modules\react-native-vision-camera\android\build.gradle' line: 231A problem occurred evaluating project ':react-native-vision-camera'.

Expected directory '..\node_modules/react-native/android' to contain exactly one file, however, it contains more than one file.

Reproduceable Code

No response

What happened instead?

unable to build the app

Relevant log output

No response

Device

android

VisionCamera Version

2.13.5

Additional information

@rvuyyuru1 rvuyyuru1 added the 馃悰 bug Something isn't working label Jul 11, 2022
@Manojkumar-Ainqa
Copy link

Hi @rvuyyuru1. Is the above issue solved for you?

@rvuyyuru1
Copy link
Author

Hi @rvuyyuru1. Is the above issue solved for you? No... using react-native-camera

@rvuyyuru1 rvuyyuru1 reopened this Jul 12, 2022
@rvuyyuru1
Copy link
Author

#1116 check this

@Manojkumar-Ainqa
Copy link

okay @rvuyyuru1, I think the react-native-camera is not working for react native 0.69.1. We need to downgrade the react-native version to 68. Also, the above PR is not merged right.

@rvuyyuru1
Copy link
Author

yep

@Manojkumar-Ainqa
Copy link

#1118 This solution works for me.

@rvuyyuru1
Copy link
Author

i will check with it and update back

@rvuyyuru1
Copy link
Author

rvuyyuru1 commented Jul 12, 2022

Task :react-native-vision-camera:configureCMakeDebug[arm64-v8a] FAILED for me
#1125

@Manojkumar-Ainqa
Copy link

You're using the react-native version 0.69.1 right?

@rvuyyuru1
Copy link
Author

You're using the react-native version 0.69.1 right?

yes

@Manojkumar-Ainqa
Copy link

Is the npx patch-package command running successfully?
Reference: #1083

@rvuyyuru1
Copy link
Author

#908 this helped me

@nica0012
Copy link

I cannot build on this version with IOS.

I am getting the following error in xCode:

'react/bridging/CallbackWrapper.h' file not found

@Manojkumar-Ainqa
Copy link

Hi @nica0012 , Yes I'm also facing the same problem for iOS. But the patched package is working for Android alone. I'm also waiting for the iOS fix :)

@nica0012
Copy link

@Manojkumar-Ainqa Thank you, I have been keeping my eyes peeled for the next update. I think I'll wait this week otherwise I will downgrade to RN v68.

@rvuyyuru1
Copy link
Author

@nica0012 Better for now switch back to 68

@aha85b
Copy link

aha85b commented Jul 19, 2022

I cannot build on this version with IOS.

I am getting the following error in xCode:

`'react/bridging/CallbackWrapper.h' file not found

Same issue.

@hengkx
Copy link

hengkx commented Jul 21, 2022

0.69.2 Same issue.

@bglgwyng
Copy link
Sponsor Contributor

I found that react-native-vision-camera alone worked well, but after installing react-native-reanimated, it started to emit the error message reported here.

https://github.com/bglgwyng/visionCameraReport
It only contains scaffolded code from react-native cli and react-native-vision-camera and react-native-reanmiated added to package.json. Clone this repo and try npm i && npm run android, then it will fail with the same error. Then you can remove react-native-reanimated dependency, and it will work well.

I guess the problem is with react-native-reanimated.

@tokkozhin
Copy link

RN 0.69.3 fix this

@BartoszDombrow
Copy link

RN 0.69.3 fix this

Still same issue

@doublex
Copy link

doublex commented Jul 26, 2022

0.69.3 works for me

@BartoszDombrow
Copy link

0.69.3 works for me

Did you disable frame processors or just upgrade RN to 0.69.3?

@doublex
Copy link

doublex commented Jul 26, 2022

Fresh install (0.69.2 failed)

@alexco2
Copy link

alexco2 commented Jul 26, 2022

I still have the same problem with version 0.69.3 with this error

Build file '.../node_modules/react-native-vision-camera/android/build.gradle' line: 231

A problem occurred evaluating project ':react-native-vision-camera'.
> Expected directory '.../node_modules/react-native/android' to contain exactly one file, however, it contains more than one file.

Which is this line

def rnAAR = fileTree("${nodeModules}/react-native/android").matching({ it.include "**/**/*.aar" }).singleFile

@Zhi0105
Copy link

Zhi0105 commented Aug 4, 2022

Hi @nica0012 , Yes I'm also facing the same problem for iOS. But the patched package is working for Android alone. I'm also waiting for the iOS fix :)

same issue

@criss02-cs
Copy link

@alexco2 I have the same issue

@alexco2
Copy link

alexco2 commented Aug 10, 2022

Fixed with newest release of vision-camera

@jason840917gmail
Copy link

jason840917gmail commented Jan 24, 2023

Same issue with RN 0.71.1

"@react-navigation/drawer": "^6.5.7",
    "@react-navigation/native": "^6.1.2",
    "latest": "^0.2.0",
    "patch-package": "^6.5.1",
    "react": "18.2.0",
    "react-native": "0.71.1",
    "react-native-gesture-handler": "^2.9.0",
    "react-native-reanimated": "^2.14.4",
    "react-native-safe-area-context": "^4.5.0",
    "react-native-screens": "^3.19.0",
    "react-native-vision-camera": "^2.15.2"
* Where:
Build file 'D:\Daniel\work\React\NativeStoresMobile\node_modules\react-native-vision-camera\android\build.gradle' line: 279

* What went wrong:
A problem occurred evaluating project ':react-native-vision-camera'.
> Expected directory 'D:\Daniel\work\React\NativeStoresMobile\node_modules\react-native/android' to contain exactly one file, however, it contains no files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃悰 bug Something isn't working
Projects
None yet
Development

No branches or pull requests