[英]Execution failed for task ':app:checkDebugDuplicateClasses', Recompile with -Xlint:deprecation for details
How to rectify this error?如何纠正这个错误?
Launching lib\main.dart on SM T385 in debug mode...
lib\main.dart
Note: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_ml_vision-0.9.9\android\src\main\java\io\flutter\plugins\firebasemlvision\FirebaseMlVisionPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
1 exception was raised by workers:
java.lang.RuntimeException: Duplicate class com.google.android.gms.internal.vision.zze found in modules classes.jar (com.google.android.gms:play-services-vision-common:19.1.0) and classes.jar (com.google.android.gms:play-services-vision:20.0.0)
Duplicate class com.google.android.gms.internal.vision.zzf found in modules classes.jar (com.google.android.gms:play-services-vision-common:19.1.0) and classes.jar (com.google.android.gms:play-services-vision:20.0.0)
Duplicate class com.google.android.gms.internal.vision.zzg found in modules classes.jar (com.google.android.gms:play-services-vision-common:19.1.0) and classes.jar (com.google.android.gms:play-services-vision:20.0.0)
Duplicate class com.google.android.gms.internal.vision.zzh found in modules classes.jar (com.google.android.gms:play-services-vision-common:19.1.0) and classes.jar (com.google.android.gms:play-services-vision:20.0.0)
Duplicate class com.google.android.gms.internal.vision.zzi found in modules classes.jar (com.google.android.gms:play-services-vision-common:19.1.0) and classes.jar (com.google.android.gms:play-services-vision:20.0.0)
Duplicate class com.google.android.gms.internal.vision.zzv found in modules classes.jar (com.google.android.gms:play-services-vision-common:19.1.0) and classes.jar (com.google.android.gms:play-services-vision:20.0.0)
Duplicate class com.google.android.gms.internal.vision.zzw found in modules classes.jar (com.google.android.gms:play-services-vision-common:19.1.0) and classes.jar (com.google.android.gms:play-services-vision:20.0.0)
Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 1m 14s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
This is a deprecated SDK.这是一个已弃用的 SDK。
We made some changes to Firebase ML Kit to better distinguish the on-device APIs from cloud based APIs.我们对 Firebase ML Kit 进行了一些更改,以更好地区分设备上的 API 和基于云的 API。 " ML Kit "(without firebase branding) contains all the on-device APIs.
“ ML Kit ”(不带 firebase 品牌)包含所有设备上的 API。 Here's the migration guide from firebase mlkit to mlkit.
这是从 firebase mlkit 到 mlkit 的迁移指南。 All further improvements and new APIs will be released only with the new ML Kit.
所有进一步的改进和新的 API 将仅与新的 ML Kit 一起发布。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.