2017-12-16 4 views
1

アプリケーションは後に私のライブラリとエラーログを更新するクラッシュです:java.lang.NoSuchMethodError:クラスLcom/google/android/gms/common/util/zzuの静的メソッドはありません。

java.lang.NoSuchMethodError: No static method getNoBackupFilesDir(Landroid/content/Context;) 
in class Lcom/google/android/gms/common/util/zzu;                   at com.google.android.gms.iid.zzh.<init>(Unknown Source)                   at com.google.android.gms.iid.zzh.<init>(Unknown Source)                   at com.google.android.gms.iid.InstanceID.zza(Unknown Source)                   at com.google.android.gms.iid.InstanceID.getInstance(Unknown Source)                   at com.quickblox.messages.services.a.c.<init>(Unknown Source)                   at com.quickblox.messages.services.a.d.a(Unknown Source)                   at com.quickblox.messages.services.SubscribeService.a(Unknown Source)                   at com.quickblox.messages.services.SubscribeService.a(Unknown Source)                   at com.quickblox.messages.services.SubscribeService.b(Unknown Source)                   at com.quickblox.messages.services.SubscribeService.c(Unknown Source)                   at com.quickblox.messages.services.SubscribeService.onHandleIntent                  at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)                  at android.os.Handler.dispatchMessage(Handler.java:102)                  at android.os.Looper.loop(Looper.java:135)                  at android.os.HandlerThread.run(HandlerThread.java:61) 

マイライブラリバージョン:

compileSdkVersion 25 
buildToolsVersion '26.0.3' 
defaultConfig { 
    multiDexEnabled true 
    minSdkVersion 16 
    targetSdkVersion 25 
} 

dependencies { 

    compile 'com.android.support:multidex:1.0.1' 
    compile 'com.android.support:appcompat-v7:25.3.1' 
    compile 'com.android.support:design:25.3.1' 
    compile 'com.android.support:support-v4:25.3.1' 
    compile 'com.android.support:recyclerview-v7:25.3.1' 
    compile 'com.android.support:cardview-v7:25.3.1' 
    compile 'com.google.android.gms:play-services-places:11.6.2' 
    compile 'com.google.android.gms:play-services-location:11.6.2' 
    compile 'com.google.firebase:firebase-messaging:11.6.2' 
    compile 'com.android.support.constraint:constraint-layout:1.0.1' 
    compile 'com.quickblox:quickblox-android-sdk-core:3.4' 
    compile 'com.quickblox:quickblox-android-sdk-videochat-webrtc:3.4' 
    compile 'com.quickblox:quickblox-android-sdk-messages:3.4' 

} 
apply plugin: 'com.google.gms.google-services' 
+0

'「com.google.android.gmsをコンパイルading試してみてください:プレー-サービス - auth:11.6.2''とLatesest Gadle –

+0

は同じエラーを起こしていません。 –

+1

この例外は、ある種のバージョンの競合の典型的な例です。実行時に現在使用されているライブラリとは別のバージョンのライブラリでコードがコンパイルされました。 – Henry

答えて

2
We need to use same version of library. 
I was use quickblox sdk. 
It is needed in order for using all libs with same version in my project (version of this libs in Quickblox SDK is 11.4.2 but all libs in our project must be same version) 
I resolve this issue adding two more library in my build.gradle. 
compile "com.google.firebase:firebase-core:11.6.2" 
compile "com.google.android.gms:play-services-gcm:11.6.2" 
関連する問題