Firebase 15.0.2更新-android单元测试失败

时间:2018-05-07 20:41:46

标签: android firebase firebase-cloud-messaging

升级到Firebase 15.0.2后,单元测试失败并出现以下错误。 这与firebase版本15.0.0一起正常工作,并在5月2日更新后开始破解,转移到15.0.2并未解决问题。



java.lang.VerifyError: Stack map does not match the one at exception handler 431
Exception Details:
  Location:
    com/google/firebase/iid/zzal.zze(Landroid/os/Bundle;)Landroid/os/Bundle; @431: pop
  Reason:
    Type 'android/os/Bundle' (current frame, locals[4]) is not assignable to 'android/support/v4/util/SimpleArrayMap' (stack map, locals[4])
  Current Frame:
    bci: @395
    flags: { }
    locals: { 'com/google/firebase/iid/zzal', 'android/os/Bundle', 'java/lang/String', 'com/google/android/gms/tasks/TaskCompletionSource', 'android/os/Bundle', top, top, top, top, top, 'com/google/firebase/iid/zzal', 'android/os/Bundle', 'java/lang/String', 'android/content/Intent', 'com/google/firebase/iid/zzal', 'android/content/Intent', 'java/lang/String' }
    stack: { 'java/lang/InterruptedException' }
  Stackmap Frame:
    bci: @431
    flags: { }
    locals: { 'com/google/firebase/iid/zzal', 'android/os/Bundle', 'java/lang/String', 'com/google/android/gms/tasks/TaskCompletionSource', 'android/support/v4/util/SimpleArrayMap', top, top, top, top, top, 'com/google/firebase/iid/zzal', 'android/os/Bundle', 'java/lang/String', 'android/content/Intent', 'com/google/firebase/iid/zzal', 'android/content/Intent', 'java/lang/String' }
    stack: { 'java/lang/Exception' }
  Bytecode:
    0x0000000: b800 784d bb00 2e59 b700 6e4e 2ab4 004b
    
    0x00001d0: 2ab4 004b 593a 08c2 2ab4 004b 2cb6 0069
    0x00001e0: 5719 08c3 a700 0b3a 0919 08c3 1909 bf19
    0x00001f0: 07bf                                   
  Exception Handler Table:
    bci [291, 322] => handler: 325
    bci [20, 33] => handler: 36
    bci [36, 41] => handler: 36
    bci [405, 417] => handler: 420
  
	at com.google.firebase.iid.zzl.<init>(Unknown Source)
	at com.google.firebase.iid.FirebaseInstanceId.<init>(Unknown Source)
	at com.google.firebase.iid.FirebaseInstanceId.<init>(Unknown Source)
	at com.google.firebase.iid.zzaf.create(Unknown Source)
	at com.google.firebase.components.zzi.zza(Unknown Source)
	at com.google.firebase.components.zzj.get(Unknown Source)
	at com.google.firebase.components.zzi.get(Unknown Source)
	at com.google.firebase.components.ComponentContainer$$CC.get(Unknown Source)
	at com.google.firebase.components.zzg.get(Unknown Source)
	at com.google.firebase.components.zzg.zzb(Unknown Source)
	at com.google.firebase.FirebaseApp.zzc(Unknown Source)
&#13;
&#13;
&#13;

更新了Gradle依赖项:

implementation 'com.google.firebase:firebase-messaging:15.0.2'
implementation 'com.google.android.gms:play-services-auth:15.0.1'
implementation 'com.google.android.gms:play-services-gcm:15.0.1'
implementation 'com.google.android.gms:play-services-base:15.0.1'

implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'



implementation 'com.google.gms:google-services:3.3.0'

0 个答案:

没有答案