红屏反应原生参考错误:找不到变量:_fbBatchedBridge

时间:2016-04-18 11:03:48

标签: javascript android facebook react-native

我按照以下文档中提到的步骤完成了所有操作。

react-native start Output

  1. https://facebook.github.io/react-native/docs/getting-started.html
  2. https://facebook.github.io/react-native/docs/android-setup.html
  3. https://facebook.github.io/react-native/docs/running-on-device-android.html
  4. 现在我正试图在我的设备上运行Android应用程序,但我得到以下错误。

    enter image description here

    enter image description here

    我尝试过以下方法来解决问题:

    react-native start > /dev/null 2>&1 &
    adb reverse tcp:8081 tcp:8081
    

    如果我尝试在没有服务器的情况下运行,请通过运行:

    将jsfile捆绑到apk中
    curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle"
    

    我得到了

    enter image description here 我按照此问题react native android failed to load JS bundle中列出的所有步骤进行了操作,但仍然无法解决问题。

    我通过热点在我的OSX机器上使用智能手机的数据计划。我在react-native开发人员设置中输入了我的机器的IP地址inet 192.168.43.14以及端口8081

    知道这里缺少什么吗?

    设备详细信息:

    OSX El Capitan 10.11.1
    Nexus 5(Rooted) 6.0.1
    Node - v4.2.1
    

0 个答案:

没有答案
相关问题