You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

React Native 0.71.0-RC.0安卓构建失败求助:依赖包无法找到

React Native 0.71.0-RC.0 构建Android时出现依赖查找失败错误

之前React Native出现服务中断,导致大量项目构建出问题。官方在GitHub Issue #35210里提供了各主版本的热修复方案,但未提及0.71.0-RC.0版本的修复方法。我当前使用该版本,运行npx react-native run-android时弹出以下错误:

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

我的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

有没有遇到过相同问题的朋友能分享解决方法?如果需要我补充更多信息,请随时告知。

内容的提问来源于stack exchange,提问作者Grant Solomons

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.12 12:26:00