突然无法建立Android Studio专案错误:无法存取zzbcc [英] Suddenly unable to build android studio project error: cannot access zzbcc

查看:83
本文介绍了突然无法建立Android Studio专案错误:无法存取zzbcc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在android studio项目中遇到以下错误:

I am getting following error in my android studio project:

错误:(77,40)错误:无法访问zzbcc类文件 找不到com.google.android.gms.internal.zzbcc错误:执行失败 任务':app:compileDebugJavaWithJavac'.

Error:(77, 40) error: cannot access zzbcc class file for com.google.android.gms.internal.zzbcc not found Error:Execution failed for task ':app:compileDebugJavaWithJavac'.

编译失败;有关详细信息,请参见编译器错误输出.

Compilation failed; see the compiler error output for details.

它突然出现了.问题出在使用Firebase身份验证的文件之一中.如果我发表评论,它将显示在另一个使用Map的文件中.

It appeared suddenly. The issue is in one of the file which uses firebase authentication. If I comment it then appears in another file which is using Map.

依赖项{ 编译fileTree(dir:'libs',包括:['* .jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 排除组:"com.android.support",模块:"support-annotations" })

dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' })

compile 'com.facebook.android:facebook-android-sdk:[4,5)'
compile 'com.onesignal:OneSignal:[3.6.2, 3.99.99]'
compile 'com.github.pinball83:masked-edittext:1.0.3'
compile 'com.android.support:appcompat-v7:26.1.+'
compile 'com.google.firebase:firebase-core:11.2.2'
compile 'com.google.firebase:firebase-database:11.2.2'
compile 'com.google.firebase:firebase-auth:11.2.2'
compile 'com.google.firebase:firebase-invites:11.2.2'
compile 'com.google.firebase:firebase-storage:11.2.2'
compile 'com.google.android.gms:play-services-location:11.2.2'
compile 'com.google.android.gms:play-services-maps:11.2.2'
compile 'com.google.android.gms:play-services-places:11.2.2'
compile 'com.firebaseui:firebase-ui-database:2.0.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:design:26.1.+'
compile 'com.android.support:support-vector-drawable:26.1.+'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.google.maps.android:android-maps-utils:0.5'
compile 'com.google.code.gson:gson:2.7'
compile 'com.android.support:multidex:1.0.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:support-v4:26.1.+'
compile 'com.android.support:cardview-v7:26.1.+'
compile 'com.android.support:recyclerview-v7:26.1.+'
testCompile 'junit:junit:4.12'  }  apply plugin: 'com.google.gms.google-services'

我非常确定该错误不是由于代码的更改而引起的,而是因为它在起作用,但是当我在几天后打开它时,它就停止了工作.依赖关系中应该存在一些问题.

I am quite sure the error is not because of any code change, as it was working but when I opened it after some days it stopped working. There should be some problem in dependencies.

推荐答案

从构建中删除此依赖项:

Remove this dependency from your build:

compile 'com.firebaseui:firebase-ui-database:2.0.0'

这是Firebase-UI的非常旧的版本.您应该改用此处的说明.还可以考虑更新您的Firebase SDK版本,并确保Firebase-UI版本和SDK之间存在匹配,如我所引用的文档中的表所示.

This is a very old version of Firebase-UI. You should be using the instructions here instead. Also consider updating your version of the Firebase SDKs, and make sure that there is a match between the version of Firebase-UI and the SDKs as shown in the table in the docs I referenced.

这篇关于突然无法建立Android Studio专案错误:无法存取zzbcc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆