小编Оле*_*дев的帖子

FireBase错误:无法访问com.google.android.gms.internal.zzanb找不到zzanb类文件

UPD.我已阅读这些问题和答案(未找到com.google.android.gms.internal.zzaja的类文件).但我不明白我需要在项目中添加或删除哪些字符串.因为我的代码中没有这个和其他字符串:编译'com.google.android.gms:play-services-location:9.2.0'

我开发了一个使用FireBase的Android应用程序.当我想构建我的项目时,我有一个错误:

错误:(39,25)错误:无法访问com.google.android.gms.internal.zzanb找不到zzanb类文件

该错误是由调用语句引起的:FirebaseAuth.getInstance().getCurrentUser();

项目build.gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath 'com.google.gms:google-services:3.0.0'
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
Run Code Online (Sandbox Code Playgroud)

模块build.gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    defaultConfig …
Run Code Online (Sandbox Code Playgroud)

java android firebase

6
推荐指数
1
解决办法
3万
查看次数

标签 统计

android ×1

firebase ×1

java ×1