显然,RN 发生了故障。这导致了很多问题,因为我现在可以构建了。
https://github.com/facebook/react-native/issues/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.
Run Code Online (Sandbox Code Playgroud)
如果有人遇到这个问题,你能告诉我你是如何解决这个问题的吗?我不明白具体针对我的情况的修复是什么。
这是我运行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, …Run Code Online (Sandbox Code Playgroud) react-native ×1