您好我正在尝试在设备上运行我的react-native
Android应用程序。它运行良好,突然间我在运行应用程序时遇到错误。
未正确安装DeviceInfo本机模块
我已经检查了这个DeviceInfo native module is not installed correctly,但它对我不起作用。我重启了我的系统以杀死所有进程。
任何人都可以帮我解决这个问题吗?
D:\React Native\ReduxExample1>react-native -v
react-native-cli: 2.0.1
react-native: 0.44.0
D:\React Native\ReduxExample1>
答案 0 :(得分:3)
我正在运行不同的应用程序,它也是在react-native
中构建的,但没有运行该应用程序的react-native
服务器。这只是我的坏事:)。
答案 1 :(得分:0)
I think this type of errors when you are not in the right packages. So as per my experience Make sure you have the right packager running in the terminal, sometimes you may have a packager associated with another react native project running, this happens because when you stop running a React Native project from Xcode or Android Studio, it doesn't stop the packager in the terminal, and when you start/open another React Native project in Xcode or Android Studio, it simply checks if a packager is running, doesn't check if it's associated with the current project. So make sure you stop all of the packager instances in the terminal and then open the React Native project again.