React Native version mismatch
See original GitHub issuereact-native-cli: 2.0.1 react-native: 0.50.3
in my package .json file “react-native”: “^0.50.4”,
getting error like this below screen
i used this compile (“com.facebook.react:react-native:0.52.0”) { force = true } But getting error like : In case of problem, please repackage it with jarjar to change the class packages File /Users/stellent/.android/repositories.cfg could not be loaded.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
> Could not find com.facebook.react:react-native:0.50.4.
Required by:
project :app
> Could not find com.facebook.react:react-native:0.50.4.
Required by:
project :app > project :react-native-image-resizer
project :app > project :react-native-fast-image
project :app > project :react-native-push-notification
project :app > project :react-native-cookies
project :app > project :react-native-exception-handler
project :app > project :@yfuks/react-native-action-sheet
project :app > project :react-native-incall-manager
project :app > project :react-native-youtube
project :app > project :react-native-webrtc
project :app > project :react-native-xmpp
> Could not find com.facebook.react:react-native:0.50.4.
Required by:
project :app > project :react-native-camera
> Could not find com.facebook.react:react-native:0.50.4.
Required by:
project :app > project :react-native-blur
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
React Native version mismatch - Stack Overflow
This is what I've done with it: Close all terminals and run build again. You may forget to close nodejs terminal from another...
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 >Resolving React Native version mismatch errors
JavaScript version: <x> Native version: <y> . This error occurs when the JavaScript and Native bits of your app get out of sync...
Read more >React-native version mismatch 0.59.4 · Issue #24529 - GitHub
We are facing issue with react-native. I recently upgrade the version of react native from 0.57.3 to 0.59.4 (for different modules needs).
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
this… https://github.com/facebook/react-native/issues/19259
@lavarajallu , I solved “Could not find com.facebook.react:react-native:0.50.4” by:
move my customize
in
allprojects.repositories.maven
ofandroid/build.gradle
toandroid/app/build.gradle
andreact-native-bt-csr/android/build.gradle
:In a word, keep original
allprojects.repositories.maven
ofandroid/build.gradle
: