мое приложение принудительно останавливается после того, как я собрал даже ошибки, Build Successful, но после этого мое приложение упало - PullRequest
0 голосов
/ 04 апреля 2019

Я запускаю свое реагирующее нативное приложение с react-native run-android. ничего плохого здесь, я уже получил сообщение СТРОИТЬ УСПЕШНЫЙ. но после этого мое приложение не открылось и сразу же принудительно остановилось. и когда я пытаюсь открыть приложение, оно не открывается.

Я пытался увидеть logcat, запустив его на 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, затем строю успешно, но с мгновенным остановом моего приложения, и даже я пытаюсь открыть снова. его продолжает останавливаться

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...