0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【flutter】mlkit API 変更に伴うエラー対応

0
Last updated at Posted at 2021-01-20

エラー内容

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:checkDebugDuplicateClasses'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
Duplicate class com.google.android.gms.internal.vision.zzbl found in modules jetified-play-services-vision-common-19.1.0-runtime (com.google.android.gms:play-services-vision-common:19.1.0) and jetified-play-services-vision-face-contour-internal-16.0.0-runtime (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0)

このエラーは2020年3月mlkit API 変更に伴うエラー

dependencies {

    api 'com.google.firebase:firebase-ml-vision-image-label-model:20.0.2'  // 追記
    api 'com.google.firebase:firebase-ml-vision-face-model:20.0.2'  // 追記
}

APP/build:gradleのdependenciesを↓に変更

dependencies {
    api 'com.google.mlkit:image-labeling:17.0.1'  // 追記
    api 'com.google.android.gms:play-services-mlkit-face-detection:16.1.2'  // 追記
}

各種mlkitに関するAPI変更内容については下記url参照
https://developers.google.com/ml-kit/migration/android

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?