在React Native中调试应用程序崩溃 [英] Debugging app crashes in react native

查看:239
本文介绍了在React Native中调试应用程序崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是React Native的新手,我正在尝试安装react native Facebook SDK,以便可以使用我的应用程序登录Facebook.

I'm new to react native, and I'm trying to install the react native Facebook SDK so that I can do Facebook login with my app.

我按照此处列出的步骤操作: https://tylermcginnis.com/installing-the-facebook-sdk-into-a-react-native-android-and-ios-app/

I followed the steps listed here: https://tylermcginnis.com/installing-the-facebook-sdk-into-a-react-native-android-and-ios-app/

问题是当我运行react-native run-android时,应用程序立即崩溃.如何调试此崩溃?我不知道在哪里查找崩溃日志. 运行react-native log-android不会给我任何有用的信息.

The problem is that when I run react-native run-android, the app crashes immediately. How do I debug this crash? I don't know where to look for crash logs. Running react-native log-android doesn't show me anything useful.

我知道这是Java问题,而不是JS问题.如何找到Java崩溃日志?

I know that this a Java issue rather than a JS issue. How can I find Java crash logs?

推荐答案

您应使用Android Studio构建应用,然后选择底部的调试"标签以查看控制台输出

You should build the app using Android Studio, then select the 'debug' tab at the bottom to see the console output

这篇关于在React Native中调试应用程序崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆