23

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.

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

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.

Edit:

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

12
  • Can you include any error messages the console is giving you? Commented Mar 27, 2017 at 0:31
  • I'd be happy to, but can you please tell me how? That was actually my question. Commented Mar 27, 2017 at 0:48
  • What specifically happens when you run react-native run-android? Do you receive no response, like does it just return the terminal prompt? Commented Mar 27, 2017 at 0:55
  • The react-native run-android command succeeds Commented Mar 27, 2017 at 0:57
  • Then do you have a virtual machine or actual Android phone set up to receive the message? Commented Mar 27, 2017 at 0:59

2 Answers 2

19

To see Java logs, open AndroidStudio, and click on AndroidMonitor at the bottom of the screen.

I was able to see the crash stack trace. My problem is that I need to set a valid facebook app id in AndroidManifest.

Sign up to request clarification or add additional context in comments.

2 Comments

In AndroidMonitor, there's a log which says "Please configure Android SDK", how do we configure it?
This tool was removed in Android Studio 3.0.
11

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

enter image description here

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.