ReferenceError:无法找到变量:__ fbBatchedBridge 1

时间:2016-06-14 16:18:28

标签: react-native

我正在关注facebook关于将native native与现有应用程序集成的教程 https://facebook.github.io/react-native/docs/embedded-app-android.html

我遇到了这个错误:

  

06-14 12:08:56.097 1911-2720 / com.example.rajshekh.integratedapp   E / unknown:React:来自JS的本机调用中的异常                                                                                   com.facebook.react.bridge.JSExecutionException:ReferenceError:不能   找到变量:__ fbBatchedBridge(:1)                                                                                       at com.facebook.react.bridge.ReactBridge.callFunction(Native Method)                                                                                       在   com.facebook.react.bridge.CatalystInstanceImpl $ 3.run(CatalystInstanceImpl.java:199)                                                                                       在android.os.Handler.handleCallback(Handler.java:739)                                                                                       在android.os.Handler.dispatchMessage(Handler.java:95)                                                                                       在   com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)                                                                                       在android.os.Looper.loop(Looper.java:148)                                                                                       在   com.facebook.react.bridge.queue.MessageQueueThreadImpl $ 3.run(MessageQueueThreadImpl.java:184)                                                                                       在java.lang.Thread.run(Thread.java:818)

我已经看到有关此问题的其他帖子,他们提出了解决方案去设置开发并放置ip地址和端口号,我已经完成了这个,我仍然得到错误。 其他人也说要运行npm开始修复它,但我已经这样做了,错误仍然存​​在。

还有其他解决方法吗?

我的代码与教程完全相同。

0 个答案:

没有答案