Android 앱에 Firebase Analytics를 추가했습니다. 나는 these 걸음을 쫓아 갔다. 이미 이유를 검색하지만, 모두가 지금까지 내 중포 기지 라이브러리 경우가있는 동일한 버전 아니라는 것이다 발견Firebase Analytics를 추가 한 후 Android 앱이 다운 됨
응용 프로그램을 실행할 때 내가 얻을 예외
dependencies {
compile 'com.google.firebase:firebase-core:9.2.0'
compile 'com.google.firebase:firebase-database:9.2.0'
compile 'com.google.firebase:firebase-auth:9.2.0'
compile 'com.google.firebase:firebase-analytics:9.2.0'
compile 'com.firebaseui:firebase-ui:0.4.4'
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.1'
compile 'com.android.support:design:25.1.1'
testCompile 'junit:junit:4.12'
}
build.gradle
에서 : (여기서 프로젝트 이름을 [프로젝트]로 대체)
E/AndroidRuntime: FATAL EXCEPTION: main
Process: [project], PID: 2764
java.lang.NoSuchMethodError: No static method zzaa(Ljava/lang/Object;)Ljava/lang/Object; in class Lcom/google/android/gms/common/internal/zzab; or its super classes (declaration of 'com.google.android.gms.common.internal.zzab' appears in /data/data/[project]/files/instant-run/dex/slice-com.google.android.gms-play-services-basement-9.4.0_6f4892c05c33d659d842b5c84c264bd97b467134-classes.dex)
at com.google.android.gms.measurement.internal.zzx.zzdo(Unknown Source)
at com.google.firebase.analytics.FirebaseAnalytics.getInstance(Unknown Source)
at [project].MainActivity.onCreate(MainActivity.java:65)
at android.app.Activity.performCreate(Activity.java:6662)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
메인 포스트 업데이트 –