2017-09-15 147 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