Skip to content

Build issue on Android #46

@TylerOlthuizen

Description

@TylerOlthuizen

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?

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

What platforms are you seeing this issue on?

  • Android
  • iOS

System Information

mac m2
pixel 7 android studio sdk 33.

Steps to Reproduce

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions