I am trying to make this guid work https://developers.google.com/ml-kit/vision/text-recognition/android?hl=en
I implemented
implementation 'com.google.android.gms:play-services-mlkit-text-recognition:18.0.2'
and
<meta-data
android:name="com.google.mlkit.vision.DEPENDENCIES"
android:value="ocr" />
as suggested.
However when I try to use the following code
TextRecognizer recognizer = TextRecognition.getClient(TextRecognizerOptions.DEFAULT_OPTIONS);
as per guide, it doesn't import the library and can't find it. I have synced the project with gradles so this should not be an issue.
I can cmd click on it and import the suggested library dependency
import com.google.mlkit.vision.text.TextRecognizer;
However it states that it cannot find "mlkit"The issue
How can I fix this?
I tried the guide by google