question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React Native version mismatch - release variant

See original GitHub issue

Summary

When trying to run the app on an Android device using release variant in Android Studio I get the following error:

E/ReactNativeJS: React Native version mismatch.
    
    JavaScript version: 0.57.1
    Native version: 0.67.4

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

bare

What platform(s) does this occur on?

Android

SDK Version (managed workflow only)

No response

Environment

expo-env-info 1.0.3 environment info: System: OS: macOS 12.3.1 Shell: 5.8 - /bin/zsh Binaries: Node: 14.18.2 - ~/.nvm/versions/node/v14.18.2/bin/node Yarn: 1.22.18 - ~/apps/tp/mobile-app/node_modules/.bin/yarn npm: 6.14.8 - ~/apps/tp/mobile-app/node_modules/.bin/npm Watchman: 2022.01.10.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.2 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: API Levels: 23, 26, 28, 29, 30, 31, 32 Build Tools: 28.0.3, 30.0.2, 30.0.3, 32.0.0 System Images: android-29 | Google Play ARM 64 v8a, android-30 | Google Play ARM 64 v8a, android-31 | Google Play Intel x86 Atom_64, android-32 | Google APIs ARM 64 v8a, android-32 | Google Play ARM 64 v8a, android-32 | Google Play Intel x86 Atom_64 IDEs: Android Studio: 2021.2 AI-212.5712.43.2112.8512546 Xcode: 13.3.1/13E500a - /usr/bin/xcodebuild npmPackages: expo: ^45.0.0 => 45.0.5 react: 17.0.2 => 17.0.2 react-native: 0.67.4 => 0.67.4 npmGlobalPackages: expo-cli: 5.4.9 Expo Workflow: bare

Reproducible demo

I tried to run the app on a device using release variant, because when I try to create a signed APK, the app crashes. The same thing happens with the release variant

Debug mode works ok.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
brentvatnecommented, Jun 13, 2022

possibly you have another bundler open? or you are using a stale embedded bundle?

either way, this isn’t a bug w/ expo so it’s better to post to https://forums.expo.dev/ or stackoverflow to get some help debugging

0reactions
expo-botcommented, Jun 14, 2022

Hello! Our GitHub issues are reserved for bug reports.

If you have a question about Expo or related tools, please post on our forums at https://forums.expo.dev/ or join our Discord at https://chat.expo.dev/.

Resources

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native version mismatch - Stack Overflow
The "JavaScript version 0.50.1" in the error console is the react-native version in your package.json file. Make sure it is the same version...
Read more >
"React Native version mismatch" errors - Expo Documentation
When developing an Expo or React Native app, it's not uncommon to run into an error that looks like: React Native version mismatch....
Read more >
How to fix React Native version mismatch - DEV Community ‍ ‍
To fix this just do the following. 1). Open package.json. 2). Change this line. "react-native": "^0.61.4",. to reflect the new version.
Read more >
Releases · facebook/react-native - GitHub
0 in early Jan. How To Test. Generate a new project with the standard command: npx react-native init RN0710RC5 --version 0.71.0-rc ...
Read more >
Using Hermes - React Native
npx react-native run-android --variant release ... Version mismatch can result in instant crash of your apps in the worst case scenario.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found