luicfrr / react-native-vision-camera-face-detector

Vision Camera Frame Processor Plugin to detect faces using MLKit Face Detector
https://www.npmjs.com/package/react-native-vision-camera-face-detector
MIT License
75 stars 16 forks source link

[Version 1.6.1 is notworking, need to new API] #49

Closed namnotfake closed 2 months ago

namnotfake commented 2 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Logs and Screenshots If applicable, add logs and/or screenshots to help explain your problem.

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

image "react-native-worklets-core": "^0.4.0", "react-native-vision-camera-face-detector": "^1.6.1", "react-native-vision-camera": "^4.0.0-beta.11", "react-native-reanimated": "3.8.1", I am configuring and getting the error as shown in the picture

namnotfake commented 2 months ago

image

Nurmehemmed commented 2 months ago

maybe it is cache error. Clear all caches and node modules again install it must works

luicfrr commented 2 months ago

@namnotfake Delete node_modules folder then remove ^ from package's versions then reinstall all dependencies.

E.g: "react-native-vision-camera-face-detector": "^1.6.1" to "react-native-vision-camera-face-detector": "1.6.1"

Then do what @Nurmehemmed said.

namnotfake commented 2 months ago

@namnotfake Delete node_modules folder then remove ^ from package's versions then reinstall all dependencies.

E.g: "react-native-vision-camera-face-detector": "^1.6.1" to "react-native-vision-camera-face-detector": "1.6.1"

Then do what @Nurmehemmed said.

thank you

namnotfake commented 2 months ago

@namnotfake Delete node_modules folder then remove ^ from package's versions then reinstall all dependencies.

E.g: "react-native-vision-camera-face-detector": "^1.6.1" to "react-native-vision-camera-face-detector": "1.6.1"

Then do what @Nurmehemmed said.

I have a new problem here. Help me image

namnotfake commented 2 months ago

I did as you said and unfortunately a new problem arose

luicfrr commented 2 months ago

I just released 1.6.2 version 🥳🎉 It is using latest vision-camera and worklets-core and it's not crashing on release mode. Can you please test it and give me a feedback? Thanks

namnotfake commented 2 months ago

I just released 1.6.2 version 🥳🎉 It is using latest vision-camera and worklets-core and it's not crashing on release mode. Can you please test it and give me a feedback? Thanks

Thank you, my problems have been solved. I found the reason from a few articles. The problem was because I was using jdk21 and somehow it was not compatible with the expo and RN version I was using, I downgraded to jdk17 and everything was resolved. Could you add it to the README if anyone has the same problem.

Mohamed-kassim commented 2 months ago

I just released 1.6.2 version 🥳🎉 It is using latest vision-camera and worklets-core and it's not crashing on release mode. Can you please test it and give me a feedback? Thanks

Thank you, my problems have been solved. I found the reason from a few articles. The problem was because I was using jdk21 and somehow it was not compatible with the expo and RN version I was using, I downgraded to jdk17 and everything was resolved. Could you add it to the README if anyone has the same problem.

i have the same issue, unfortunately I have jdk version 17 any suggestions?

Screenshot 2024-05-05 at 10 14 24 PM
namnotfake commented 2 months ago

I just released 1.6.2 version 🥳🎉 It is using latest vision-camera and worklets-core and it's not crashing on release mode. Can you please test it and give me a feedback? Thanks

Thank you, my problems have been solved. I found the reason from a few articles. The problem was because I was using jdk21 and somehow it was not compatible with the expo and RN version I was using, I downgraded to jdk17 and everything was resolved. Could you add it to the README if anyone has the same problem.

i have the same issue, unfortunately I have jdk version 17 any suggestions? Screenshot 2024-05-05 at 10 14 24 PM

remove node-module, remove cache npm: npm cache clean --force. Before npm install, you must check package.json, remove "^" in package vision camera, camera detect face, worklets-core. You can check androi/bundle.gradle minSdkVersion: 26