-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Task ':@react-native-camera-roll_camera-roll:compileDebugJavaWithJavac' uses this output of task ':react-native-camera-roll_camera-roll:compileDebugAidl' without declaring an explicit or implicit dependency. #1692
Comments
Have you find any solution? |
Any solution to work in React Native 0.72? |
This Sent me down the path of upgrading to RNVC v3, the latest version of React Native, the new react-native-worklets-core library, etc. The result? My app builds successfully now, but there's no path forward for using Vision Camera Code Scanner. It just isn't going to happen, until someone fixes it to work with RNVC v3. Unfortunately, there seem to be a grand total of 0 active contributors to the Vision Camera Code Scanner project -- on any repo. Hopefully this will change soon! I need it for a work project as well. |
Closing as this is a stale issue - this might have been fixed with the full rewrite in VisionCamera V3 (🥳) - if not, please create a new issue. If your issue has been fixed, consider sponsoring me on GitHub to say thanks 💖 |
What were you trying to do?
Trying to compile my app -- which used to compile just fine. Problems started when I tried to use FrameProcessors.
Specifically, these libraries: react-native-reanimated, vision-camera-code-scanner
I haven't been able to build my app successfully since I first started implementing "Hello World" with that vision-camera-code-scanner.
APOLOGIES FOR THE TITLE, which makes it seem like an issue with react-native-camera-roll.
Here is where my compile is crashing:
What went wrong:
Execution failed for task ':react-native-vision-camera:configureCMakeDebug[arm64-v8a]'.
I've been receiving many errors, sometimes focused on "react-native-camera-roll" (see below error output) or other libraries touching on the camera. The thing is, I haven't touched that library (camera-roll) so it can't be something in that specific library causing the actual problem. It might be related to "reanimated", but this project is not "off the hook". Here is what I mean:
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
Picked up JAVA_TOOL_OPTIONS: -Xms2048m -Xmx6096M
Note: /home/matthew/dev/rn/stackbayapp/node_modules/@react-native-camera-roll/camera-roll/android/src/main/java/com/reactnativecommunity/cameraroll/CameraRollModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/matthew/dev/rn/stackbayapp/node_modules/@react-native-camera-roll/camera-roll/android/src/main/java/com/reactnativecommunity/cameraroll/CameraRollPackage.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /home/matthew/dev/rn/stackbayapp/android/app/src/main/java/com/stackbay/NetworkChangeReceiver.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
Execution failed for task ':react-native-vision-camera:configureCMakeDebug[arm64-v8a]'.
2: Task failed with an exception.
java.lang.StackOverflowError (no error message)
And there's this:
"#1260
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))"
Reproduceable Code
What happened instead?
Gradle detected a problem with the following location: '/home/matthew/dev/rn/stackbayapp/node_modules/@react-native-camera-roll/camera-roll/android/build/generated/aidl_source_output_dir/debug/out'. Reason: Task ':@react-native-camera-roll_camera-roll:compileDebugJavaWithJavac' uses this output of task ':react-native-camera-roll_camera-roll:compileDebugAidl' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Relevant log output
Device
N/A
VisionCamera Version
2.15.6
Additional information
The text was updated successfully, but these errors were encountered: