React-native: 无法获取本机呼叫队列:网桥配置不可用

创建于 2016-04-20  ·  3评论  ·  资料来源: facebook/react-native

_Mac, RN@master (887c275),安卓_

编译 UIExampleProject :

./gradlew :Examples:UIExplorer:android:app:installDebug assembleReleasereact-native/

然后将此apk发送到我的Android设备并安装它。

以为我打算让应用程序离线使用,因为这里没有关于Running on Device - Android的特殊说明,因为这里有Running on Device - iOS

主要是我来这里拿奖杯:

screenshot_20160419-180732

Locked

最有用的评论

这其实是一个很常见的错误,不过最近改了错误信息:(commit https://github.com/facebook/react-native/commit/c24fae9544bb3f6a6313e9583c875591607bcefc)

上一个错误是一个 JS 跟踪,说“__fbBatchedBridge”未定义,这是由于没有运行打包程序(或错误打包程序运行)引起的。 您可以在这里找到信息:

我会建议:

  • 重新安装整个 RN 堆栈(rm node_modules && npm install)
  • 如果您正在使用 watchman,请将其卸载或重新安装
  • 确保您正在运行打包程序./packager/packager.sh
  • 确保在应用程序调试设置中设置了正确的 IP/端口

这显然假设您想要调试版本,它没有捆绑包(并且您必须运行打包程序)。 如果您想要一个带有捆绑包的应用程序,那就不同了。

所有3条评论

这其实是一个很常见的错误,不过最近改了错误信息:(commit https://github.com/facebook/react-native/commit/c24fae9544bb3f6a6313e9583c875591607bcefc)

上一个错误是一个 JS 跟踪,说“__fbBatchedBridge”未定义,这是由于没有运行打包程序(或错误打包程序运行)引起的。 您可以在这里找到信息:

我会建议:

  • 重新安装整个 RN 堆栈(rm node_modules && npm install)
  • 如果您正在使用 watchman,请将其卸载或重新安装
  • 确保您正在运行打包程序./packager/packager.sh
  • 确保在应用程序调试设置中设置了正确的 IP/端口

这显然假设您想要调试版本,它没有捆绑包(并且您必须运行打包程序)。 如果您想要一个带有捆绑包的应用程序,那就不同了。

有效的是rm -rf node_modules && npm install

我删除了/node_modules/运行npm install ,必须修复 react-native 0.26.2 正在寻找 react 15.0.2 的错误,但它安装了 react 15.1.,所以我删除了^package.json ` "react": "^15.0.2"

那么......错误仍然出现在模拟器/应用程序中:

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.
此页面是否有帮助?
0 / 5 - 0 等级

相关问题

davidfloegel picture davidfloegel  ·  3评论

DreySkee picture DreySkee  ·  3评论

oney picture oney  ·  3评论

WG-Com picture WG-Com  ·  3评论

axelg12 picture axelg12  ·  3评论