简体   繁体   English

运行本机Android应用程序时出错-BatchedBridge

[英]Error running a react-native Android app - BatchedBridge

I am trying to bring-up our react-native app on Android. 我正在尝试在Android上启动我们的react-native应用程序。 It is working fine on iOS. 在iOS上运行正常。 When I try to run the debug build, react-native throws the below error: 当我尝试运行调试版本时,react-native抛出以下错误:

TypeError: undefined is not an object
(evaluating 'require('BatchedBridge').flushedQueue')
("line":1 in generated bundle)

How do I figure out what is causing the error? 我如何找出导致错误的原因? Any advice is greatly appreciated. 任何意见是极大的赞赏。 Saw online that sometimes such an error message can contain the column, but in my case there is only the line number. 在网上看到,有时这样的错误消息可以包含该列,但就我而言,只有行号。 I am running react-native 0.17. 我正在运行本机0.17。

Had a messed-up path, in one place. 在一个地方有一条混乱的道路。 Fixing that alleviated the problem. 解决该问题的方法已得到解决。

It seems that react-native Android is ready for business, as much as anything... It would be nice to have better diagnostics, and perhaps integrate react-native Android with an IDE to the point where the IDE [plugin] would be able to make inclusion of Android modules into config more seamless. 似乎React-native Android已准备就绪,可以进行任何业务……最好有更好的诊断程序,也许将React-native Android与IDE集成到可以使用IDE [plugin]的地步。使将Android模块纳入配置更加无缝。 Xcode linking configuration is also not perfect, but it is slightly easier on developers. Xcode链接配置也不是完美的,但是对开发人员来说稍微容易一些。

Since react-native is a young project, there is no reason to not expect such tools in the future, I hope. 我希望,由于react-native是一个年轻的项目,因此没有理由不希望将来有这样的工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM