gpt4 book ai didi

java - 库 com.google.android.gms :play-services-basement is being requested by various other libraries at [[15. 0.1,15.0.1]],但解析为 16.1.0

转载 作者:太空宇宙 更新时间:2023-11-03 13:40:02 26 4
gpt4 key购买 nike

我正在尝试处理图像处理项目,我使用 Firebase 数据库,当我尝试在依赖项中添加播放服务视觉时,它出现了错误,即“库 com.google.android.gms:play -services-basement 被 [[15.0.1,15.0.1]] 上的各种其他库请求,但解析为 16.1.0。禁用插件并使用 ./gradlew :app:dependencies 检查你的依赖关系树。'

dependencies {

implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:support-v4:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-storage:16.0.1'
implementation 'com.google.firebase:firebase-auth:16.0.1'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.google.android.gms:play-services-vision:17.0.2'
}

最佳答案

要解决这个问题,请更改以下代码行:

implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-storage:16.0.1'
implementation 'com.google.firebase:firebase-auth:16.0.1'
implementation 'com.google.android.gms:play-services-vision:17.0.2'

implementation 'com.google.firebase:firebase-database:16.0.5'
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.google.firebase:firebase-storage:16.0.5'
implementation 'com.google.firebase:firebase-auth:16.1.0'
implementation 'com.google.android.gms:play-services-vision:16.2.0'

请确保您的 gradle 文件中有以下代码行作为最后一行:

apply plugin: 'com.google.gms.google-services'

另请确保您在顶级(项目)build.gradle 文件中包含以下 Google 服务插件:

classpath 'com.google.gms:google-services:4.2.0'

关于java - 库 com.google.android.gms :play-services-basement is being requested by various other libraries at [[15. 0.1,15.0.1]],但解析为 16.1.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54369418/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com