2017-09-15 125 views
0

我試圖鏈接我的應用程序與gplus它在單獨工作正常,而不是當我合併它與我的項目應用程序。請看看下面的gradle文件,如果可以,請幫助我。谷歌oauth錯誤

compile 'com.android.support:appcompat-v7:25.3.1' 
    compile 'com.android.support.constraint:constraint-layout:1.0.2' 
    compile 'com.android.support:design:25.3.1' 
    compile 'com.squareup.retrofit2:retrofit:2.3.0' 
    compile 'com.squareup.retrofit2:converter-gson:2.3.0' 
    compile 'com.squareup.retrofit2:converter-jackson:2.1.0' 
    compile 'de.hdodenhof:circleimageview:1.2.1' 
    testCompile 'junit:junit:4.12' 

    compile 'com.google.android.gms:play-services-auth:9.0.2' 
    compile 'com.google.android.gms:play-services:9.0.2' 
    compile 'com.github.bumptech.glide:glide:3.7.0' 
    compile 'com.android.support:multidex:1.0.1' 
} 

它顯示了以下錯誤,當我嘗試運行:

java.lang.AbstractMethodError: abstract method "com.google.android.gms.common.api.Api$zze com.google.android.gms.common.api.Api$zza.zza(android.content.Context, android.os.Looper, com.google.android.gms.common.internal.zzf, java.lang.Object, com.google.android.gms.common.api.GoogleApiClient$ConnectionCallbacks, com.google.android.gms.common.api.GoogleApiClient$OnConnectionFailedListener)" 

回答

0

我面臨同樣的問題,我 不斷變化的「com.google.android.gms嘗試:播放 - 服務-AUTH:9.0.2' 和 'com.google.android.gms:發揮服務:9.0.2' 來

'com.google.android.gms:play-services-auth:9.2.0' 
'com.google.android.gms:play-services:9.2.0' 

嘗試更改版本。

+0

嗨,是的,我試圖通過改變..新西蘭我得到另一個錯誤。我無法登錄到我的帳戶..登錄失敗時,我嘗試登錄錯誤: 由:bafl:INVALID_ARGUMENT:應用程序憑據標頭無效。請修復客戶端以傳遞有效的應用程序憑據標頭。 –

+0

謝謝archana ..我解決了通過添加更新和添加谷歌json文件與我忘了做的項目... –

+0

好的。這個問題是什麼?這是因爲JSON文件還是版本? – Archana