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

See original GitHub issue

react-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 screen shot 2018-05-15 at 5 53 09 pm

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:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

0reactions
flyskywhycommented, May 16, 2018

@lavarajallu , I solved “Could not find com.facebook.react:react-native:0.50.4” by:

move my customize

    url "$rootDir/../app/node_modules/react-native-bt-csr/android/libs"

in allprojects.repositories.maven of android/build.gradle to android/app/build.gradle and react-native-bt-csr/android/build.gradle :

repositories {
    maven { url "$rootDir/../app/node_modules/react-native-bt-csr/android/libs" }
}

In a word, keep original allprojects.repositories.maven of android/build.gradle:

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
    }
}
Read more comments on GitHub >

github_iconTop 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 >

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