无法访问zzbfm mLocationRequest.setInterval(UPDATE_INTERVAL);找不到com.google.android.gms.internal.zzbfm的类文件

时间:2019-06-14 03:18:15

标签: java android class gradle

我正在制作GPS跟踪器系统,并尝试添加Google Maps跟踪,但是在尝试通过模拟器运行应用程序时出现此错误:

错误:无法访问zzbfm         mLocationRequest.setInterval(UPDATE_INTERVAL); 找不到com.google.android.gms.internal.zzbfm的类文件

我相信这是因为依赖关系的版本不同,但我不知道应该使用哪个版本。我尝试了许多版本,但仍然没有解决方案。

这是我的模块build.gradle

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.google.firebase:firebase-database:17.0.0'
implementation 'com.google.firebase:firebase-auth:17.0.0'
implementation 'com.google.android.gms:play-services:11.8.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.firebase:firebase-core:16.0.9'
implementation 'com.android.support:design:28.0.0'
implementation 'com.firebaseui:firebase-ui-auth:3.3.0'
implementation 'com.firebaseui:firebase-ui-database:3.3.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.android.gms:play-services-maps:11.8.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'
}

应用插件:“ com.google.gms.google-services”

这是我的项目bundle.gradle:

dependencies {
    classpath 'com.android.tools.build:gradle:3.2.1'
    classpath 'com.google.gms:google-services:4.2.0'}
repositories {
    google()
    jcenter()
    maven{

          url "https://maven.google.com"

    }
    maven{


        url "https://maven.fabric.io/public"

    }
}

我该怎么办?

0 个答案:

没有答案