Closed Noma98 closed 1 year ago
I have a similar problem, it was compiling fine last month and now it fails all the time, it is also possible that something in my Linux environment changed...
+1
An update, I completely deleted my ndk and cmake compiler from the android sdk folder and reinstalled them from android studio, It was a really frustrating problem, but anyway that fixed it. note: I installed ndk version 21.4.7075529 and 24.0.8215888 and all cmake versions.
hope this helps !!
+1
+1
+1
+1
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: https://github.com/mrousavy/react-native-vision-camera/pull/1674#issuecomment-1684104217
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!
What were you trying to do?
When I run
npm i react-native-vision-camera
andnpm run android
, the error':react-native-vision-camera:compileDebugKotlin'
appears.I have downgraded the react-native-vision-camera to 2.13.0 and raised the react-native version to 0.68.2, but it still doesn't work. (https://github.com/mrousavy/react-native-vision-camera/issues/1012) And I tried a lot of other things, but they all failed.
Reproduceable Code
What happened instead?
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':react-native-vision-camera:compileDebugKotlin'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 47s
info Run CLI with --verbose flag for more details.
Relevant log output
Device
Pixel 2 API 29 (virtual device)
VisionCamera Version
2.13.5
Additional information