question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] undefined is not an object(evaluating 'NativeModules.AndroidConstants.ServerHost.split')

See original GitHub issue
screen shot 2016-08-24 at 10 57 28 am

I can assume the error happens in here,

https://github.com/facebook/react-native/blob/master/Libraries/Devtools/setupDevtools.js#L22

I don’t have a clue what to do with this one. Do I need to fork the react-native and comment this line and just assign 'localhost'???

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
YanYanLuncommented, Sep 13, 2016

I also encountered the same problem, but in accordance with the above mentioned have not been resolved, it should be how to do?

2reactions
samercecommented, Aug 26, 2016

also just ran into this problem while trying to get Android working for a React Native project where iOS is already working

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-Native: undefined is not an object (evaluating 'Sn[e]')
I'm getting this error in Android Studio when I use the class Run button to try to build the app on my phone...
Read more >
error: undefined is not an object (evaluating '$scope.settings ...
When I use ListView to show my data, a question occur to me. it throws Undefined is not an object (evaluating 'dataSource.rowIdentities'). Here...
Read more >
React-Native / Expo Go: How to solve `TypeError: null is not ...
Expo Go doesn't build native modules, so you may run into this error while trying to run your app with react-native-purchases in Expo...
Read more >
Android custom native module
I followed the steps but when i run expo start and scan the qr code i got this error : TypeError: null is...
Read more >
react-native-fabric from corymsmith - Coder Social
Before the app loads, I get a red error screen saying "undefined is not an object (evaluating NativeModules.AndroidConstants.ServerHost.split)".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found