reactnativecn / react-native-website

React Native 中文网
https://reactnative.cn
MIT License
219 stars 328 forks source link

执行yarn android ,启动不起来 #783

Closed idealog closed 6 months ago

idealog commented 10 months ago

请按以下格式提供问题的相关信息。

问题的具体描述

info Installing the app... Downloading https://services.gradle.org/distributions/gradle-8.3-all.zip

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

Exception in thread "main" java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request"

请描述完整的环境/版本信息

MAC环境

预期结果

怎么才能跑起来?

sunnylqm commented 10 months ago

翻墙问题

p0ssword commented 10 months ago

可以把gradle下载下来, 然后使用本地路径 Snipaste_2023-12-28_10-33-05

注意: :之前要使用转义符号, 即在前面加个反斜杠()

sunnylqm commented 10 months ago

可以把gradle下载下来, 然后使用本地路径 Snipaste_2023-12-28_10-33-05

注意: :之前要使用转义符号, 即在前面加个反斜杠()

完全没必要,你直接放在同一个目录就完全不用考虑目录的斜杠问题了,

sunnylqm commented 10 months ago

而且他的是代理本身报错,即便你本地下载了gradle,继续往下跑,任何网络请求都会报错

p0ssword commented 10 months ago

而且他的是代理本身报错,即便你本地下载了gradle,继续往下跑,任何网络请求都会报错

才看到他用了代理, 代理都报错400了

p0ssword commented 10 months ago

感情啥报错也是没看的😂

zhanglkx commented 9 months ago

建议先看报错,再去 Google/百度,能解决 99% 的问题

github-actions[bot] commented 6 months ago

👋 Hey there, it looks like there has been no activity on this issue in the last 90 days. Has the issue been fixed, or does it still require the community attention? This issue will be closed in the next 7 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 6 months ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.