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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution failed for task ':react-native-vision-camera:extractJNIFiles'. > Cannot expand ZIP 🐛 #1260

Closed
3 of 4 tasks
DevelopCarlosWM opened this issue Sep 28, 2022 · 11 comments · Fixed by #1466
Closed
3 of 4 tasks
Labels
🐛 bug Something isn't working

Comments

@DevelopCarlosWM
Copy link

What were you trying to do?

I'm trying to run with RN 0.69.4 but get a task error

Reproduceable Code

No response

What happened instead?

`FAILURE: Build failed with an exception.

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

  • What went wrong:
    Execution failed for task ':react-native-vision-camera:extractJNIFiles'.

Cannot expand ZIP '/node_modules/react-native-reanimated/android/react-native-reanimated-69-jsc.aar' as it does not exist.`

Relevant log output

No response

Device

Android build

VisionCamera Version

2.14.1

Additional information

@DevelopCarlosWM DevelopCarlosWM added the 🐛 bug Something isn't working label Sep 28, 2022
@DevelopCarlosWM DevelopCarlosWM changed the title 🐛 Execution failed for task ':react-native-vision-camera:extractJNIFiles'. > Cannot expand ZIP 🐛 Sep 28, 2022
@jamninetyfive
Copy link

#1210 (comment)

@jRichardCotting
Copy link

It seems to me that in your project the version of the react-native-reanimated package that you have installed doesn't includes the 'react-native-reanimated-69-jsc.aar' file.

You can check if your version has the file in the website: https://unpkg.com/browse/react-native-reanimated@2.4.1/android/

If you are using versions higher than the v2 of React reanimated, consider downgrading as react-native-vision-camera still doesn't support v3. If you are already using some version of v2 in your react-native-reanimated check if the package exists in this bundle.

In my case I was working with the version 2.1.0, which doesn't includes the "-jsc.arr" files. Upgrading to v2.4.1 solved my problem.

@2Senn
Copy link

2Senn commented Jul 20, 2023

Still facing this issue even after downgrading react native reanimated to v2. I used reanimated@2.4.1 and it fails to find the .ZIP file that ends with 72. i am assuming this refers to the react native version? It is a bit confusing, I am not sure why it requests that to begin with.

@Catnais88
Copy link

Hi,
I have the same problem : it fails to find the file react-native-reanimated-72-hermes.aar

react 18.2
RN 0.72.1
RN vision camera 2.15.4
RN reanimated 2.14.4

@clonalejandro
Copy link

same issue

@jacobjones123
Copy link

same issue here
"node_modules/react-native-reanimated/android/react-native-reanimated-72-hermes.aar as it does not exist."

    "react": "18.2.0",
    "react-native": "0.72.3",
    "react-native-reanimated": "^2.14.4",
    "react-native-vision-camera": "^2.15.5",

@Desintegrator
Copy link

same here

@JulesPatry
Copy link

same here as well

@Silvman
Copy link

Silvman commented Aug 8, 2023

I ran into the same issue in new project with latest RN 0.72 + react-native-vision-camera

react-native-vision-camera v2 requires react-native-reanimated v2.x.x which does not support new RN 0.72
support for 0.72 is only available since RNR v3.3.0 (software-mansion/react-native-reanimated#4668 (comment)), but you can't use RNR3 with react-native-vision-camera (#1210 (comment))

ended up downgrading react-native to 0.71.12

@VivekCEpic
Copy link

Same here as well

@mrousavy
Copy link
Owner

Hey! I've rewritten the entire Android codebase of VisionCamera from CameraX to Camera2 in the efforts of ✨ VisionCamera V3.

I just now completed the Camera2 rewrite and I believe the core structure is running, but there might be some edge cases to iron out. Can you try and test the PR #1674 for me to see if you can still reproduce this issue here?

Here's an instruction on how you can test that: #1674 (comment)

If the issue cannot be reproduced with that version/PR anymore, then hoorayy, I fixed it! 🎉
Otherwise please let me know and I'll keep this issue open to keep track of it.

Thank you!

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

Successfully merging a pull request may close this issue.