2017-02-23 369 views
7

訪問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來解決它 –

回答

11

升級您的火力點進行版本10.2.0

**由於2017年7月11日的這11.6.0

+1

這是正確的答案,但爲什麼我沒有像往常一樣得到過時庫的警告? – yehyatt

+0

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

4

答案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