Google Play服务取决于确切的版本22.0.0

问题描述 投票:1回答:1

我试图为二维码扫描器添加依赖项

在实现此依赖时,我得到了

implementation 'com.google.firebase:firebase-ml-vision-barcode-model:16.0.1'
FAILURE: Build failed with an exception.

* What went wrong:
In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[22.0.
0]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.

Dependency failing: com.google.firebase:firebase-ml-vision-barcode-model:16.0.1 -> com.google.firebase:firebase-ml-commo
n@[22.0.0], but firebase-ml-common version was 22.0.1.

The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
ifact with the issue.
-- Project 'app' depends onto com.google.firebase:firebase-ml-vision@{strictly 24.0.1}
-- Project 'app' depends onto com.google.firebase:firebase-ml-common@{strictly 22.0.1}
-- Project 'app' depends onto com.google.firebase:firebase-ml-vision-barcode-model@{strictly 16.0.1}
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]

For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https://
github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b
uild.gradle file.

* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Exception is:
com.intellij.openapi.externalSystem.model.ExternalSystemException: In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[22.0.
0]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.

Dependency failing: com.google.firebase:firebase-ml-vision-barcode-model:16.0.1 -> com.google.firebase:firebase-ml-commo
n@[22.0.0], but firebase-ml-common version was 22.0.1.

也,

Gradle和Google Services版本

classpath 'com.android.tools.build:gradle:3.6.0'
classpath 'com.google.gms:google-services:4.3.3'

和gradle包装器属性

distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
android firebase barcode-scanner
1个回答
0
投票

删除此插件

© www.soinside.com 2019 - 2024. All rights reserved.