react-native-camera-kit icon indicating copy to clipboard operation
react-native-camera-kit copied to clipboard

Build is failing on Android [RN 0.72.4]

Open sarahabuteen opened this issue 2 years ago • 7 comments
trafficstars

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

sarahabuteen avatar Sep 17 '23 12:09 sarahabuteen

same error ,any update ?

omarabualhija avatar Sep 19 '23 15:09 omarabualhija

see https://github.com/teslamotors/react-native-camera-kit/issues/596

Productivix avatar Oct 10 '23 14:10 Productivix

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

opensourcekam avatar Oct 12 '23 19:10 opensourcekam

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

muralitharanaspritle avatar Oct 19 '23 16:10 muralitharanaspritle

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

opensourcekam avatar Oct 19 '23 19:10 opensourcekam

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

DavidBertet avatar Dec 21 '23 23:12 DavidBertet

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

omarabualhija avatar Jan 03 '24 15:01 omarabualhija