gpt4 book ai didi

java - 库 com.google.android.gms :play-services-basement is being requested

转载 作者:搜寻专家 更新时间:2023-11-01 07:42:52 26 4
gpt4 key购买 nike

无法通知依赖解析监听器。

库 com.google.android.gms:play-services-basement 正在被 [[11.0.2,11.0.2], [15.0.1,15.0.1]] 的各种其他库请求,但解析到 15.0.1。禁用插件并使用 ./gradlew :app:dependencies 检查你的依赖关系树。

构建应用程序时出现此错误,这是我的 gradle

apply plugin: 'com.android.application'

android {

compileSdkVersion 26
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "com.example.radon.vitrin"
minSdkVersion 14
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
useLibrary 'org.apache.http.legacy'
}

dependencies {

implementation 'com.journeyapps:zxing-android-embedded:3.2.0@aar'
implementation 'com.google.zxing:core:3.2.1'
implementation files('libs/CircleImageViewmaster/gradle/wrapper/gradle-wrapper.jar')
implementation files('libs/picasso-2.5.2(1).jar')
implementation 'com.android.support:multidex:1.0.1'
//noinspection GradleCompatible
implementation 'com.android.support:design:26.0.0-alpha1'
implementation 'com.android.support:cardview-v7:26.1.0'
implementation 'com.android.support:recyclerview-v7:26.1.0'
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:26.0.0-alpha1'
//noinspection GradleCompatible
implementation 'com.google.android.gms:play-services:11.0.2'

//noinspection GradleCompatible

implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.android.support.constraint:constraint-layout:1.0.0-alpha7'
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation ('io.socket:socket.io-client:1.0.0') {
// excluding org.json which is provided by Android
exclude group: 'org.json', module: 'json'
}
implementation 'com.google.firebase:firebase-core:16.0.1'

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

最佳答案

尝试将 firebase 依赖项从 16.0.1 降级到 16.0.0。如果这不起作用,请尝试升级 google play 服务依赖项

实现 'com.google.android.gms:play-services:16.0.0' 使其工作。

关于java - 库 com.google.android.gms :play-services-basement is being requested,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51806693/

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