我无法在Android Studio <Expo SDK 48中运行React Native Debugger。开发人员菜单中没有Debug Remote JS选项,但我有Open JS Debugger选项。当我选择它时,Devtools会显示出来。但是在React Native Debugger中,我的设备未连接到端口19000。
我已阅读文档并安装了许多库,但仍然无法正常工作。
我无法在Android Studio <Expo SDK 48中运行React Native Debugger。开发人员菜单中没有Debug Remote JS选项,但我有Open JS Debugger选项。当我选择它时,Devtools会显示出来。但是在React Native Debugger中,我的设备未连接到端口19000。
我已阅读文档并安装了许多库,但仍然无法正常工作。
同样的问题。我找到了这个解决方案,它对我有用。
app.json 配置
"jsEngine": "hermes",
"ios": {
"jsEngine": "jsc",
"supportsTablet": true
},
使用npx expo start --localhost
命令运行项目
来源:https://github.com/jhen0409/react-native-debugger/issues/754#issuecomment-1469852938
我可以确认,在app.json
文件中的"android"
和"ios"
下添加"jsEngine": "jsc"
,然后RND将再次开始工作。