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

Build is failing on Android [RN 0.72.4] #587

Open
sarahabuteen opened this issue Sep 17, 2023 · 7 comments
Open

Build is failing on Android [RN 0.72.4] #587

sarahabuteen opened this issue Sep 17, 2023 · 7 comments

Comments

@sarahabuteen
Copy link

sarahabuteen commented Sep 17, 2023

Describe the bug
I recently upgraded my react native app from version 0.70.6 to version 0.72.4, iOS is working fine but the Android build is failing, with the following error:

Could not determine the dependencies of task ':react-native-camera-kit:compileDebugJavaWithJavac'.
> Could not determine the dependencies of null.
   > Cannot query the value of this provider because it has no value available.

To Reproduce
Steps to reproduce the behavior:

  1. Install the package
  2. Do the kotlin setup
  3. Run the app, and you'll get the error

Expected behavior
The app should work fine without any build errors

Screenshots
N/A

Smartphone

  • Device: Huawei P30 lite
  • OS: EMUI 12
@omarabualhija
Copy link

same error ,any update ?

@Productivix
Copy link

see #596

@opensourcekam
Copy link

This still reproduces for me on version 0.72.5 even after following all of the steps in #596

@muralitharanaspritle
Copy link

Please follow this doc:
https://github.com/teslamotors/react-native-camera-kit/blob/master/docs/kotlin.md and change the minSdkVersion = 23 in android/build.gradle

@opensourcekam
Copy link

That’s very obvious and does not fix the issue

Please follow this doc:
https://github.com/teslamotors/react-native-camera-kit/blob/master/docs/kotlin.md and change the minSdkVersion = 23 in android/build.gradle

@DavidBertet
Copy link
Contributor

Not sure what your error means. I didn't get it.

I updated the example app, first to 0.72.4, then to 0.73.1 and it worked fine. I'll test it further before to raise a PR.

https://github.com/DavidBertet/react-native-camera-kit/tree/feature/update_react_native/example

I looked at how Facebook is doing it on their template
https://github.com/facebook/react-native/tree/v0.73.1/packages/react-native/template

@omarabualhija
Copy link

omarabualhija commented Jan 3, 2024

u can replace it with react-native-vision-camera/QR/Barcode Scanning

so easy to replace it and vision camera is performed and strong

warning :
must have react-native-reanimated ^v3
make sure when update it it will not effect on ur project

https://react-native-vision-camera.com/docs/guides/code-scanning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants