【发布时间】:2016-04-06 09:07:41
【问题描述】:
在运行 react-native run-android 后,我在模拟器(测试 Genymotion 和 google Stock Emulator)和物理设备(Samsung S4)上收到以下错误:
输入的错误:
java.util.concurrent.ExcecutionException: java.lang.RuntimeException: SyntaxError: Attempted to redefine property 'key'. (http://192.168.50.37:8081/index.android.bundle?platform=android&dev=true&hot=false:72450)
- 在 this stackoverflow discussion 中,Genymotion 发生了类似的错误(也是
java.util.concurrent.ExecutionException),但那里的解决方案对我没有帮助,即adb reverse tcp:8081 tcp:8081。 - 我还尝试将 Dev Settings/
Debug server host & port for device更改为0.0.0.0:8081而不是MY_IP:8081,其中MY_IP是我电脑的 IP。
我正在运行 react native 0.22.2
【问题讨论】:
标签: java android adb react-native genymotion