简体   繁体   English

反应原生构建失败

[英]react-native build fail

MY OS = Windows 10我的操作系统 = Windows 10

IDE = VS Code IDE = VS 代码

react-native info反应本机信息

System:系统:

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

Binaries:二进制文件:

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

SDKs: SDK:

Android SDK: Not Found

IDEs: IDE:

Android Studio: Version  3.6.0.0 AI-192.7142.36.36.6308749

Languages:语言:

Python: 2.7.17

npmPackages: npm 软件包:

@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0 
react-native: 0.62.0 => 0.62.0 

npmGlobalPackages: npmGlobalPackages:

*react-native*: Not Found

//////////////// Path ///////////////// ///////////////路径//////////////////

PATH Image路径图像

//////////////// Build Fail Message /////////////////// ///////////////构建失败消息///////////////////

react-native run-android react-native run-android

Error Image错误图像

I see 2 things from the errors:我从错误中看到两件事:

  • In a path I gradle installed somewhere using OneDrive.在我使用 OneDrive 安装在某处的 gradle 路径中。 Installing stuff like gradle on a cloud environment is never a smart idea.在云环境中安装 gradle 之类的东西从来都不是一个聪明的主意。 I should install this somewhere on your main windows drive, let's say C: drive.我应该把它安装在你的主 Windows 驱动器上的某个地方,比如说 C: 驱动器。
  • Make sure that you have Android Studio installed.确保您已安装 Android Studio。 Without it cannot run.没有它就不能运行。

If you want to share code with other users try GitHub.如果您想与其他用户共享代码,请尝试使用 GitHub。 Sharing code using OneDrive is not a working solution.使用 OneDrive 共享代码不是可行的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM