2017-02-20 13 views
0

AndroidアプリケーションにFirebase通知を追加しようとしています。私は必要なすべてのfirebase-androidをやった。AndroidのFirebase通知(不明なソース)エラー

build.gradle(プロジェクト):

buildscript { 
    repositories { 
     jcenter() 
    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:2.2.3' 
     classpath 'com.google.gms:google-services:3.0.0' 
    } 
} 

allprojects { 
    repositories { 
     jcenter() 
    } 
} 

task clean(type: Delete) { 
    delete rootProject.buildDir 
} 

build.grudle(アプリ):

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
     exclude group: 'com.android.support', module: 'support-annotations' 
    }) 
    compile 'com.android.support:appcompat-v7:25.1.0' 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:design:25.1.0' 
    compile 'com.google.firebase:firebase-core:10.2.0' 
    compile 'com.google.firebase:firebase-messaging:10.0.1' 

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

しかし、それは行方不明、不明なソース

02-20 18:57:56.634 925-925/com.sarazeef.teaoria E/AndroidRuntime: FATAL EXCEPTION: main 
                    Process: com.sarazeef.teaoria, PID: 925 
                    java.lang.NoSuchMethodError: No static method zzaaj()Lcom/google/firebase/iid/zzg; in class Lcom/google/firebase/iid/zzg; or its super classes (declaration of 'com.google.firebase.iid.zzg' appears in /data/data/com.sarazeef.teaoria/files/instant-run/dex/slice-com.google.firebase-firebase-iid-10.2.0_d53622db8f96b7ec4a26866e04f3b40994f5004d-classes.dex) 
                     at com.google.firebase.messaging.FirebaseMessagingService.zzF(Unknown Source) 
                     at com.google.firebase.iid.zzb.onStartCommand(Unknown Source) 
                     at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4128) 
                     at android.app.ActivityThread.access$2400(ActivityThread.java:229) 
                     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1924) 
                     at android.os.Handler.dispatchMessage(Handler.java:102) 
                     at android.os.Looper.loop(Looper.java:148) 
                     at android.app.ActivityThread.main(ActivityThread.java:7325) 
                     at java.lang.reflect.Method.invoke(Native Method) 
                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) 
                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) 

Iの多くを示していますplsを解決する必要があります。

答えて

関連する問題