React-native: Couldn't get the native call queue: bridge configuration isn't available

Created on 20 Apr 2016  路  3Comments  路  Source: facebook/react-native

_Mac, RN@master (887c275), Android_

Compiled the UIExampleProject with:

./gradlew :Examples:UIExplorer:android:app:installDebug assembleRelease in react-native/

Then sent this apk to my Android device and installed it.

Thought I was going to get the app for offline use since there are no special instructions here for that Running on Device - Android as there are here Running on Device - iOS.

Mostly I am here to pick up the trophy:

screenshot_20160419-180732

Locked

Most helpful comment

This is actually a very common error, but the error message has recently been changed: (commit https://github.com/facebook/react-native/commit/c24fae9544bb3f6a6313e9583c875591607bcefc )

The previous error was a JS trace saying "__fbBatchedBridge" is not defined which is caused due to no packager running (or faulty packer running). You may find info here:

I would suggest:

  • reinstall the whole RN stack (rm node_modules && npm install)
  • if you are using watchman, uninstall it or reinstall it
  • make sure you are running the packer ./packager/packager.sh
  • make sure the correct IP/port is set in the app debug settings

This obviously assumes that you want the debug build, which does not have the bundle (and you must run the packager). If you want an app with bundle it's different.

All 3 comments

This is actually a very common error, but the error message has recently been changed: (commit https://github.com/facebook/react-native/commit/c24fae9544bb3f6a6313e9583c875591607bcefc )

The previous error was a JS trace saying "__fbBatchedBridge" is not defined which is caused due to no packager running (or faulty packer running). You may find info here:

I would suggest:

  • reinstall the whole RN stack (rm node_modules && npm install)
  • if you are using watchman, uninstall it or reinstall it
  • make sure you are running the packer ./packager/packager.sh
  • make sure the correct IP/port is set in the app debug settings

This obviously assumes that you want the debug build, which does not have the bundle (and you must run the packager). If you want an app with bundle it's different.

What worked was to rm -rf node_modules && npm install

I deleted /node_modules/ ran npm install, had to fix error where react-native 0.26.2 was looking for react 15.0.2, but it installed react 15.1., so I removed the ^ from this line in package.json `"react": "^15.0.2".

THEN... error still appears in emulator/app:

Couldn't get the native call queue: bridge configuration isn't available. this probably indicates there was an issue loading the JS bundle, e.g. it wasn't packaged into the app or was malformed. Check your logs ('adb logcat') for more information.
Was this page helpful?
0 / 5 - 0 ratings