反应本机构建失败
react-native build fail
我的OS=Windows10
IDE = VS 代码
react-native 信息
系统:
OS: Windows 10 10.0.18363
CPU: (8) x64 Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz
Memory: 7.00 GB / 11.89 GB
二进制文件:
Node: 13.12.0 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 6.14.4 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDK:
Android SDK: Not Found
IDEs:
Android Studio: Version 3.6.0.0 AI-192.7142.36.36.6308749
语言:
Python: 2.7.17
npm 包:
@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0
react-native: 0.62.0 => 0.62.0
npmGlobalPackages:
*react-native*: Not Found
/////////////// 路径 ////////////////
PATH Image
/////////////// 构建失败消息 /////////////// ///
react-native 运行-android
Error Image
我从错误中看出两点:
- 路径显示 gradle 使用 OneDrive 安装在某处。在云环境中安装 gradle 之类的东西从来都不是一个聪明的主意。您应该将其安装在主 windows 驱动器的某个位置,假设是 C: 驱动器。
- 确保您已安装 Android Studio。没有它就不能 运行.
如果您想与其他用户共享代码,请尝试 GitHub。使用 OneDrive 共享代码不是可行的解决方案。
我的OS=Windows10
IDE = VS 代码
react-native 信息
系统:
OS: Windows 10 10.0.18363
CPU: (8) x64 Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz
Memory: 7.00 GB / 11.89 GB
二进制文件:
Node: 13.12.0 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 6.14.4 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDK:
Android SDK: Not Found
IDEs:
Android Studio: Version 3.6.0.0 AI-192.7142.36.36.6308749
语言:
Python: 2.7.17
npm 包:
@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0
react-native: 0.62.0 => 0.62.0
npmGlobalPackages:
*react-native*: Not Found
/////////////// 路径 ////////////////
PATH Image
/////////////// 构建失败消息 /////////////// ///
react-native 运行-android
Error Image
我从错误中看出两点:
- 路径显示 gradle 使用 OneDrive 安装在某处。在云环境中安装 gradle 之类的东西从来都不是一个聪明的主意。您应该将其安装在主 windows 驱动器的某个位置,假设是 C: 驱动器。
- 确保您已安装 Android Studio。没有它就不能 运行.
如果您想与其他用户共享代码,请尝试 GitHub。使用 OneDrive 共享代码不是可行的解决方案。