不能在火力地堡

问题描述:

访问zzbql当我更新到最新buildToolsVersion '25 .0.2' 我得到这个错误,当我尝试运行:不能在火力地堡

Error:(103, 37) error: cannot access zzbql class file for com.google.android.gms.internal.zzbql not found

我使用这些火力地堡库:

  compile 'com.google.firebase:firebase-auth:10.0.1' 
      compile 'com.google.firebase:firebase-messaging:10.0.1' 
      compile 'com.google.firebase:firebase-core:10.0.1' 
      compile 'com.google.firebase:firebase-crash:10.0.1' 
+0

可以是http://stackoverflow.com/questions/42355796/firebase-google-sign-in-will-not-work-android的副本吗? –

+0

不好,我无法编译,你建议的情况下有问题获取用户数据,我的代码已经在市场上工作,能够登录(至少在更新之前) – yehyatt

+0

我有同样的问题,我通过从10.2.0降级到10.0.1来解决它 –

升级您的火力点进行版本10.2.0

**由于2017年7月11日的这11.6.0

+1

这是正确的答案,但为什么我没有像往常一样得到过时库的警告? – yehyatt

+0

我正在使用'compile'c​​om.google.firebase:firebase-core:10.2.0'',但错误消息并未消失。 – JCarlos

答案SOLV问题的实质在于将Firebase升级到10.2.0,如@DenerRocha的回复中所述。

但是,下次google-play-services更新时,您可能会再次遇到同样的问题。问题是编译器警告你有一个新的谷歌播放服务版本,但对Firebase没有这样做。所以请记住以下几点:

当你有这样的:

compile 'com.google.android.gms:play-services-auth:10.2.0' 

你的火力地堡将是:

compile 'com.google.firebase:firebase-core:10.2.0' 
compile 'com.google.firebase:firebase-messaging:10.2.0' 
compile 'com.google.firebase:firebase-auth:10.2.0' 

在10.3.0版本是,你必须全部更新其中至10.3.0

+2

除此之外,您可以将版本定义为'String playServicesVersion = '10.2.4'',然后将其用于播放服务和Firebase: {'compile“com.google.firebase:firebase-database:$ {playServicesVersion }“ compile”com.google.android.gms:play-services-auth:$ {playServicesVersion}“'}} – piusvelte