android错误:无法访问zzbfm mlocationrequest.setinterval

ztigrdn8  于 2021-06-30  发布在  Java
关注(0)|答案(0)|浏览(145)

在bulid gradle中,我将所有的firebase依赖项分组在firebase bom下。
我还升级了一些play服务依赖项,得到以下错误。

error: cannot access zzbfm
mLocationRequest.setInterval(UPDATE_INTERVAL_IN_MILLISECONDS);
                       ^
class file for com.google.android.gms.internal.zzbfm not found
Note: Some input files use or override a deprecated API.

你能告诉我我做错了什么吗?我如何知道我应该将依赖项更新到哪个版本?任何帮助都将不胜感激!
我的 build.gradle(app) ```
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 29
buildToolsVersion '28.0.3'
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "xxx"
minSdkVersion 21
targetSdkVersion 29
versionName '1.5.3.0'
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
versionCode 271
}
buildTypes {

    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        signingConfig signingConfigs.config
    }
}
productFlavors {
}
configurations.all {
    resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
    exclude module: 'httpclient'
}

}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.google.code.gson:gson:2.8.0'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
implementation 'com.google.android.gms:play-services-vision:11.8.0'
implementation 'com.google.android.gms:play-services-location:11.8.0'
implementation 'com.google.android.gms:play-services-analytics:17.0.0'
implementation 'me.anwarshahriar:calligrapher:1.0'
implementation 'com.baoyz.swipemenulistview:library:1.3.0'
testImplementation 'junit:junit:4.12'
implementation 'com.google.apis:google-api-services-storage:v1-rev135-
1.23.0'

implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.android.support:support-v4:28.0.0-rc02'
implementation 'com.android.support:support-v13:28.0.0-rc02'
implementation 'com.android.support:cardview-v7:28.0.0-rc02'
implementation 'com.android.support:appcompat-v7:28.0.0-rc02'
implementation 'com.android.support:recyclerview-v7:28.0.0-rc02'
implementation 'com.android.support:design:28.0.0-rc02'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.google.code.gson:gson:2.8.5'
implementation group: 'org.apache.httpcomponents', name: 'httpmime', 
version: '4.3.1'
implementation 
androidTestImplementation 'com.android.support.test:rules:1.0.2'

implementation platform('com.google.firebase:firebase-bom:26.1.1')
implementation 'com.google.firebase:firebase-database'
implementation 'com.google.firebase:firebase-auth'
implementation 'com.google.firebase:firebase-messaging'
implementation 'com.google.firebase:firebase-iid'
implementation 'com.google.firebase:firebase-core'
implementation 'com.google.firebase:firebase-crash'
implementation 'com.google.firebase:firebase-firestore'
implementation 'com.google.firebase:firebase-crashlytics'

}

apply plugin: 'com.google.gms.google-services'
apply plugin: 'kotlin-android-extensions'
repositories {
mavenCentral()
}

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题