简体   繁体   English

当我用firebase构建我的apk时反应原生白屏

[英]React native white screen when i build my apk with firebase

i have a problem when i build an apk using the command expo build:android.当我使用命令 expo build:android 构建 apk 时遇到问题。 I've got a white screen.我有一个白屏。 It seems the problem is related to firebase because i had to add react native fcm to receive notifications on my app.似乎问题与 firebase 有关,因为我必须添加 react native fcm 才能在我的应用程序上接收通知。 When i comment everything related to fcm/firebase (androidmanifest, build.gradle...) my apk works.当我评论与 fcm/firebase(androidmanifest、build.gradle...)相关的所有内容时,我的 apk 有效。 The problem is idk where i can see the errors, what i am missing because i followed all the tutorial on the react native firebase website to install cloud messaging.问题是我可以在哪里看到错误,我错过了什么,因为我遵循了 react native firebase 网站上的所有教程来安装云消息传递。 If you have an idea it would really help me, thanks in advance.如果你有一个想法,它真的会帮助我,在此先感谢。

this is the tutorial in question : https://rnfirebase.io/messaging/usage这是有问题的教程: https ://rnfirebase.io/messaging/usage

I tried many times to modify the dependencies in build gradle, add new things i found in internet on the manifest, change versions... nothing works :(我尝试了很多次来修改构建 gradle 中的依赖项,在清单上添加我在互联网上找到的新东西,更改版本......没有任何效果:(

try checking your Android studio logs which shows red color highlighted text in it while running the react-native application.尝试在运行 react-native 应用程序时检查您的 Android Studio 日志,其中显示红色突出显示的文本。 Hope that helps you in finding the problem.希望能帮助你找到问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM