RN development issue – React Native version Mismatch
Today, I created a new RN project locally. The following error was reported during startup. I tried several ways to solve it.
The react-Native version of the project is 0.65.1, and the react-Native version I installed locally is 0.59.9. I thought I found the problem. I upgraded the local version, and it still didn’t work. So simply uninstall the React-native, which is the same error. Watchman watch-del-all && react-native start –reset-cache watchman watch-del-all && React-native start –reset-cache Therefore, I tried the second method to ensure that the react-Native version of JS is consistent with the Android version, that is, the following configuration in Android /app/build.gradle and the React-Native version in the package are updated to the latest. It didn’t work.
Finally, I found that another RN project was running on my computer, so I shut that RN project down and started the current one, and the problem was solved.
Summary: Although the error message here is quite clear, it is RN version of the problem, but there are also a lot of interference, here record the tried way, to avoid similar problems in the future.