vision-camera-image-labeler icon indicating copy to clipboard operation
vision-camera-image-labeler copied to clipboard

App crash after installing plugin

Open netin1202 opened this issue 2 years ago • 1 comments

Hi, After installing this Plugin my android app crashes with "Didn't find class "com.google.mlkit.vision.common.internal.Detector"" Message

netin1202 avatar Dec 26 '22 06:12 netin1202

Im had crash issue then i found we have to add Google Label images with ML Kit on Android - https://developers.google.com/ml-kit/vision/image-labeling/android

Try these two fixes

app/build.gradle

dependencies {
  // ...
  // Use this dependency to bundle the model with your app
       implementation 'com.google.mlkit:image-labeling:17.0.7'
}

For using the model in Google Play Services:

dependencies {
    // ...
    // Use this dependency to use the dynamically downloaded model in Google Play Services
      implementation 'com.google.android.gms:play-services-mlkit-image-labeling:16.0.8'
}

sudharsanvishnu avatar Jan 09 '23 11:01 sudharsanvishnu