a7medev / react-native-ml-kit

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

Build issue on Android #46

Open TylerOlthuizen opened 8 months ago

TylerOlthuizen commented 8 months 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 6 months ago

same to me

seolargo commented 5 months ago

same