我的应用程序构建成功,甚至没有任何错误后,我的应用程序停止运行,但构建成功后,我的应用程序崩溃了

时间:2019-04-04 07:30:14

标签: android firebase react-native

我使用react-native run-android运行react native应用程序。在这里没有错,我已经收到消息BUILD SUCCESSFUL。但是之后,我的应用程序无法打开,并立即强制停止。而当我尝试重新打开应用程序时,它一直无法打开。

我试图通过在Android Studio上运行来查看logcat,因此我可以看到logcat为什么在我的项目中发生。

这是我的应用崩溃后的日志

 --------- beginning of crash
2019-04-04 14:27:12.120 9507-9507/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.timahfrontend, PID: 9507
    java.lang.NoSuchMethodError: No static method com_google_firebase_components_ComponentRuntime$$Lambda$1_lambda$new$0(Lcom/google/firebase/components/ComponentRuntime;Lcom/google/firebase/components/Component;)Ljava/lang/Object; in class Lcom/google/firebase/components/ComponentRuntime; or its super classes (declaration of 'com.google.firebase.components.ComponentRuntime' appears in /data/app/com.timahfrontend-1/base.apk)
        at com.google.firebase.components.ComponentRuntime$$Lambda$1.get(com.google.firebase:firebase-common@@16.1.0)
        at com.google.firebase.components.Lazy.get(com.google.firebase:firebase-common@@16.1.0:53)
        at com.google.firebase.components.AbstractComponentContainer.get(com.google.firebase:firebase-common@@16.1.0:27)
        at com.google.firebase.components.ComponentRuntime.get(com.google.firebase:firebase-common@@16.1.0:36)
        at com.google.firebase.FirebaseApp.<init>(com.google.firebase:firebase-common@@16.1.0:554)
        at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@16.1.0:365)
        at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@16.1.0:332)
        at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@16.1.0:316)
        at com.google.firebase.provider.FirebaseInitProvider.onCreate(com.google.firebase:firebase-common@@16.1.0:53)
        at android.content.ContentProvider.attachInfo(ContentProvider.java:1759)
        at android.content.ContentProvider.attachInfo(ContentProvider.java:1734)
        at com.google.firebase.provider.FirebaseInitProvider.attachInfo(com.google.firebase:firebase-common@@16.1.0:47)
        at android.app.ActivityThread.installProvider(ActivityThread.java:6420)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:6012)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5951)
        at android.app.ActivityThread.-wrap3(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1710)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:154)
        at android.app.ActivityThread.main(ActivityThread.java:6776)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1518)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)

我希望应用程序正常运行,如何解决此问题。就我而言,问题似乎出在firebase。但我不知道如何解决。但是现在实际的过程是我运行react-native run-android,然后构建成功,但是我的应用立即停止,甚至我尝试再次打开。它一直停着

0 个答案:

没有答案