在React Native中调试应用程序崩溃

在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