Android Studio 创建项目报错(一)

刚换完工作,配置好jdk,装好studio,刚创建好一个project,studio就抛出一个错误:

Error:Unknown host 'services.gradle.org'. You may need to adjust the proxy settings in Gradle.
<a href="toggle.offline.mode">Enable Gradle 'offline mode' and sync project</a><br><a href="https://docs.gradle.org/current/userguide/userguide_single.html#sec:accessing_the_web_via_a_proxy">Learn about configuring HTTP proxies in Gradle</a>


错误信息精简一下就是:Unknown host 'services.gradle.org'. You may need to adjust the proxy settings in Gradle.

遇到这样的问题,首先想到的就是百度,当然有很多人遇到类似的情况,解决方法也是多种多样,但是于我都不适用,于是就找啊找的,终于在google到一位外国网友提供的方法:


翻译一下就是:

  

开始这里默认的是勾选的 No proxy,这里改为选中红框,然后apply-OK-clean;

这样做的后果是:BUILD SUCCESSFUL!!


---------------------------------------------------------------------------------

(第一次写博客,求轻拍,Android开发一枚,以后会尽量多写ヾ(◍°∇°◍)ノ゙)

猜你喜欢

转载自blog.csdn.net/amaoagou112/article/details/79168734