skip to Main Content

There was apparently a RN outage. This causes so much issues now as I can get a build out.

https://github.com/facebook/react-native/issues/35210

but that "FIX" says to look at https://github.com/facebook/react-native/issues/35210#:~:text=We%20have%20prepared%20releases%20for%20all%20the%20main%20versions%20of%20react%2Dnative%20with%20an%20hotfix%3A

The issue with that is there is no mention of 0.71.0-RC.0 version fix, I am on that version and when I try to run npx react-native run-android, I get the following:

   > Could not find any matches for com.facebook.react:react-native:+ as no versions of com.facebook.react:react-native are available.

If someone came across this could you please mention how you solved this? I do not understand what the fix is for my situation specifically.

This is what the terminal spits out when I run react-native info:

System:
OS: macOS 13.0
CPU: (8) arm64 Apple M1
Memory: 129.47 MB / 8.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.14.2 - /usr/local/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 8.5.5 - /opt/homebrew/bin/npm
Watchman: 2022.09.05.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
  Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
Android SDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8815526
Xcode: 14.0.1/14A400 - /usr/bin/xcodebuild
Languages:
Java: 11.0.16.1 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0 
react-native: 0.71.0-rc.0 => 0.71.0-rc.0 
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found

please let me know if I should add more information.

3

Answers


  1. Chosen as BEST ANSWER

    Fixed by upgrading my RN version to one of the ones with the patches


  2. Just to be sure everyone gets this, yes @Grant Solomons got this right.

    So if in your package.json file you have "react-native": "^0.70.0",, delete the ^ it to "react-native": "0.70.0",

    Login or Signup to reply.
  3. I have the same issue after upgrading React Native 0.71 and this solution worker for me

    1. Open android/app/build.gradle file (Not android/build.gradle file)
    2. Add apply plugin: "com.facebook.react" like this:

    apply plugin: "com.android.application"

    apply plugin: "com.facebook.react"

    import com.android.build.OutputFile

    1. Rebuild your application, it should works
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search