Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/394.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Firebase致命异常:java.lang.NoSuchFieldError没有Ljava/lang/Object类型的字段锁_Java_Firebase_Error Handling_Fatal Error_React Native Firebase - Fatal编程技术网

Firebase致命异常:java.lang.NoSuchFieldError没有Ljava/lang/Object类型的字段锁

Firebase致命异常:java.lang.NoSuchFieldError没有Ljava/lang/Object类型的字段锁,java,firebase,error-handling,fatal-error,react-native-firebase,Java,Firebase,Error Handling,Fatal Error,React Native Firebase,我正在使用firebase对React Native进行测试。并从crashlytics仅在Android上以生产模式获取错误。在开发模式下,不可能捕捉到它。从stacktrace可以清楚地看出,错误发生在Java端。如果应用程序试图访问或修改对象的指定字段,而该对象不再具有该字段,则会发生NoSuchFieldError。也许有人也犯了这个错误。有什么办法解决吗 Fatal Exception: java.lang.NoSuchFieldError: No field LOCK of type

我正在使用firebase对React Native进行测试。并从crashlytics仅在Android上以生产模式获取错误。在开发模式下,不可能捕捉到它。从stacktrace可以清楚地看出,错误发生在Java端。如果应用程序试图访问或修改对象的指定字段,而该对象不再具有该字段,则会发生NoSuchFieldError。也许有人也犯了这个错误。有什么办法解决吗

Fatal Exception: java.lang.NoSuchFieldError: No field LOCK of type Ljava/lang/Object; in class Lcom/google/firebase/FirebaseApp; or its superclasses (declaration of 'com.google.firebase.FirebaseApp' appears in base.apk:classes2.dex)
       at com.google.firebase.FirebaseApp.access$300(com.google.firebase:firebase-common@@19.2.0:89)
       at com.google.firebase.FirebaseApp$GlobalBackgroundStateListener.onBackgroundStateChanged(com.google.firebase:firebase-common@@19.2.0:661)
       at com.google.android.gms.common.api.internal.BackgroundDetector.onBackgroundStateChanged(:45)
       at com.google.android.gms.common.api.internal.BackgroundDetector.onTrimMemory(:41)
       at android.app.Application.onTrimMemory(Application.java:160)
       at android.app.ActivityThread.handleTrimMemory(ActivityThread.java:5613)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1906)
       at android.os.Handler.dispatchMessage(Handler.java:105)
       at android.os.Looper.loop(Looper.java:164)
       at android.app.ActivityThread.main(ActivityThread.java:6944)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)