1

Whats the issue?

I get a version mismatch on react native (android).

React Native version mismatch. JavaScript version: 0.59.9 - Native version: 0.63.4

The build works as described in this issue when running through Android Studio. The build however works fine when running: react-native run-android.

Please let me know what else I can try, or what might cause the issue.

React Native version: 0.63.4

Expected Results

The app running as expected

What have I tried to resolve the issue

  • Clearing caches
  • Forcing versions through build.gradle (React Native version mismatch)
  • Going back in history through git
  • Reinstalling / trying other emulator versions
  • Remove node_modules and reinstall
  • Tried react-native-clean-project (https://github.com/pmadruga/react-native-clean-project)
  • Uninstalling the app from the emulator manually
  • Was building with SDK Tools 29, also tried with 30 (was working with 29 before)
  • Tried different versions of Android Studio (4.1, 4.0, 4.1.1. (current))
  • Tried downgrading to RN 0.62.2
  • Tried downgrading to RN 0.63.3

Console Error

NickyNL
  • 21
  • 1
  • 3

2 Answers2

0

My "nuclear" option that usually works is to just delete the entire repo from my local machine and then pull it back down from the cloud and start completely fresh.

Definitely not ideal, but sometimes literally nothing else works. I'm not even sure what causes this error as it just appears out of the blue and usually I haven't upgraded react-native for months or even years before it decides to show up.

Vickel
  • 7,879
  • 6
  • 35
  • 56
Matt
  • 1
0

Are you using a library (3rd party) that is using a react-native version different than your project's react native version? in my case i was using react-native-v8 in my project and upon upgrading my rn project's version i got this error, so i matched the versions in the correct way. here is the link for more info, i guess these problems have a similar source. React Native version mismatch