mrousavy / react-native-vision-camera

📸 A powerful, high-performance React Native Camera library.
https://react-native-vision-camera.com
MIT License
7.35k stars 1.07k forks source link

🔧 Production Build Error with 4.5.3 #3192

Closed SKHRAPP closed 2 weeks ago

SKHRAPP commented 2 weeks ago

How were you trying to build the app?

Getting error when try to make production Build

* What went wrong:
Execution failed for task ':app:packageStagingReleaseBundle'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.PackageBundleTask$BundleToolWorkAction
   > Unrecognized native architecture for directory 'lib/riscv64'.

how to solve this issue @mo

Full build logs

.

Project dependencies

"dependencies": {
   "react-native": "0.74.2",
   "react-native-reanimated": "^3.14.0",
   "react-native-vision-camera": "^4.5.3",
   "react-native-worklets-core": "^1.3.3",
  }

VisionCamera Version

4.5.3

Target platforms

Android

Operating system

Linux

Can you build the VisionCamera Example app?

Yes, I can successfully build the Example app here

Additional information

maintenance-hans[bot] commented 2 weeks ago

Guten Tag, Hans here. 🍻

Thank you for providing your issue details, but I notice you did not include full build logs with more context, which mrousavy needs to properly analyze ze problem. Please make sure to provide complete logs from your build process, especially from Android Studio or by using adb logcat.

Also, it looks like you are encountering a native architecture issue – could you double-check if all of your dependencies are compatible with ze targeted architectures? If you need ze help, please also consult ze documentation and troubleshooting guide again, and provide any relevant logs.

If ze problem persists, feel free to update us with more information! In ze meantime, consider supporting ze project at this link to encourage more timely assistance.

Note: If you think I made a mistake, please ping @mrousavy to take a look.

MahmoudHemaid commented 2 weeks ago

I have same issue, and i can see many issues opened for same issue @mrousavy

mrousavy commented 2 weeks ago

This is not a VisionCamera error. In the logs you posted here there isn't even a single mention of VisionCamera. Please don't ping me everytime you have an issue @MahmoudHemaid .

MahmoudHemaid commented 2 weeks ago

How about these issues? https://github.com/mrousavy/react-native-vision-camera/issues/3177 and https://github.com/mrousavy/react-native-vision-camera/issues/3194

The issue is related to v4.5.3, people where able to make build works by downgrading to 4.5.2 so it's related to VisionCamera

mrousavy commented 2 weeks ago

replied there.