React native 远程redux开发工具已停止工作

React native 远程redux开发工具已停止工作,react-native,redux,remote-debugging,redux-devtools,React Native,Redux,Remote Debugging,Redux Devtools,以前有人问过这个问题,但我找不到有效的解决方案,所以我冒昧地展示我的代码,以防我遗漏了什么。我有一个react本地应用程序,正在使用redux。我已经在这个项目上使用远程redux开发工具两个月了,但是这个工具突然停止了工作。我在控制台中收到一个“SocketProtocolError”,并将它与我的代码一起粘贴到下面 Redux商店 import { createStore, applyMiddleware } from "redux"; import { composeWithDevTool

以前有人问过这个问题,但我找不到有效的解决方案,所以我冒昧地展示我的代码,以防我遗漏了什么。我有一个react本地应用程序,正在使用redux。我已经在这个项目上使用远程redux开发工具两个月了,但是这个工具突然停止了工作。我在控制台中收到一个“SocketProtocolError”,并将它与我的代码一起粘贴到下面

Redux商店

import { createStore, applyMiddleware } from "redux";
import { composeWithDevTools } from "remote-redux-devtools";
import thunk from "redux-thunk";
import reducers from "../../State/reducers/index";

const composeEnhancers = composeWithDevTools({ realtime: true });

const store = createStore(
  reducers,
  {},
  composeEnhancers(applyMiddleware(thunk))
);

export default store;
在我的package.json文件中,我正在使用“远程redux devtools”:“^0.5.13”

这是我在控制台中得到的错误


任何帮助都将不胜感激

我通过运行以下命令修复了在手机上调试应用程序时出现的相同错误:

adb reverse tcp:5678 tcp:5678
允许手机连接到devtools。如果使用不同的端口号,请调整端口号。如果您正在计算机上的模拟器中运行应用程序,这可能不会有帮助