AndroidStudio摇篮代理摇篮、AndroidStudio

2023-09-12 04:10:16 作者:女汉纸有颗玻璃訫

我试着运行 AndroidStudio 但它没有在启动与摇篮错误:

I've tried to run AndroidStudio But It's failing on boot with gradle error:

无法导入摇篮工程:连接超时:连接

我找到了解决办法here

I found solution here

但我找不到如何在 Android的工作室

graddle-wrapper.properties 并不能帮助他们设置

推荐答案

在Android的工作室 - > preferences - >摇篮,通过代理细节VM选项

In Android Studio -> Preferences -> Gradle, pass the proxy details as VM options.

摇篮VM选项 -Dhttp.proxyHost = www.somehost.org -Dhttp.proxyPort = 8080 等。

*在0.8.6 Beta版摇篮是在文件 - >设置(CTRL + ALT + S,在Windows上)

*In 0.8.6 Beta Gradle is under File->Settings (Ctrl+Alt+S, on windows)