a7medev / react-native-ml-kit

React Native On-Device Machine Learning w/ Google ML Kit
MIT License
424 stars 58 forks source link

Build issue on Android #46

Open TylerOlthuizen opened 1 year ago

TylerOlthuizen commented 1 year ago

What happened?

Hello!

Are there any additional steps to get Android to work properly? Everything works great on IOS, get an error when starting Android app, and it immediately crashes.

Error:

FATAL EXCEPTION: create_react_context
java.lang.NoSuchMethodError: No static method getClient()Lcom/google/mlkit/vision/text/TextRecognizer; in class Lcom/google/mlkit/vision/text/TextRecognition;

Version

@react-native-ml-kit/barcode-scanning: version@react-native-ml-kit/face-detection: version@react-native-ml-kit/identify-languages: version@react-native-ml-kit/image-labeling: version@react-native-ml-kit/text-recognition: version@react-native-ml-kit/translate-text: version

Which ML Kit packages do you use?

What platforms are you seeing this issue on?

System Information

mac m2 pixel 7 android studio sdk 33.

Steps to Reproduce

install package, implement package in react native code, build android app.

mahdiih commented 11 months ago

same to me

seolargo commented 10 months ago

same

neha-s999 commented 3 weeks ago

any update for the solution?