_Mac, RN@master (887c275),安卓_
编译 UIExampleProject :
./gradlew :Examples:UIExplorer:android:app:installDebug assembleRelease
在react-native/
然后将此apk发送到我的Android设备并安装它。
以为我打算让应用程序离线使用,因为这里没有关于Running on Device - Android的特殊说明,因为这里有Running on Device - iOS 。
主要是我来这里拿奖杯:
这其实是一个很常见的错误,不过最近改了错误信息:(commit https://github.com/facebook/react-native/commit/c24fae9544bb3f6a6313e9583c875591607bcefc)
上一个错误是一个 JS 跟踪,说“__fbBatchedBridge”未定义,这是由于没有运行打包程序(或错误打包程序运行)引起的。 您可以在这里找到信息:
我会建议:
./packager/packager.sh
这显然假设您想要调试版本,它没有捆绑包(并且您必须运行打包程序)。 如果您想要一个带有捆绑包的应用程序,那就不同了。
有效的是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.
最有用的评论
这其实是一个很常见的错误,不过最近改了错误信息:(commit https://github.com/facebook/react-native/commit/c24fae9544bb3f6a6313e9583c875591607bcefc)
上一个错误是一个 JS 跟踪,说“__fbBatchedBridge”未定义,这是由于没有运行打包程序(或错误打包程序运行)引起的。 您可以在这里找到信息:
我会建议:
./packager/packager.sh
这显然假设您想要调试版本,它没有捆绑包(并且您必须运行打包程序)。 如果您想要一个带有捆绑包的应用程序,那就不同了。