Error:Unknown host 'services.gradle.org'. You may need to adjust the proxy settings in Gradle. Error
2017-12-01 13:27
1336 查看
本文转自:http://blog.csdn.net/m0_37039192/article/details/74924484
Error:Unknown host ‘services.gradle.org’. You may need to adjust the proxy settings in Gradle.
是Android studio 更新gradle 的问题。
解决方案:
1.首先打开android studio项目 找到项目目录gradle\wrapper\gradle-wrapper.properties这个文件 。
2.文件中最后一句是下载地址,android studio会联网下载符合当前版本的gradle插件,而这个网址虽然可以访问但速度实在太慢,所以每次更新需要花很长时间或直接超时
3.拷贝下载地址自行在网上下载,或根据版本号在网上搜索下载
4.把下载好的zip文件,不用解压直接拷贝到 C:\Users\Administrator.gradle\wrapper\dists\gradle-1.9-all\3jdgemv0iv8uqohg3kcp2o88r1 目录下。
5.重新启动Android studio 或 直接单击android studio工具栏 Sync Project Gradle Files
Error:Unknown host ‘services.gradle.org’. You may need to adjust the proxy settings in Gradle.
是Android studio 更新gradle 的问题。
解决方案:
1.首先打开android studio项目 找到项目目录gradle\wrapper\gradle-wrapper.properties这个文件 。
2.文件中最后一句是下载地址,android studio会联网下载符合当前版本的gradle插件,而这个网址虽然可以访问但速度实在太慢,所以每次更新需要花很长时间或直接超时
3.拷贝下载地址自行在网上下载,或根据版本号在网上搜索下载
4.把下载好的zip文件,不用解压直接拷贝到 C:\Users\Administrator.gradle\wrapper\dists\gradle-1.9-all\3jdgemv0iv8uqohg3kcp2o88r1 目录下。
5.重新启动Android studio 或 直接单击android studio工具栏 Sync Project Gradle Files
相关文章推荐
- Error:Unknown host 'services.gradle.org'. You may need to adjust the proxy settings in Gradle. Error
- Error:Unknown host 'android.oa.com'. You may need to adjust the proxy settings in Gradle.
- [Android]Error:Unknown host 'maven.oa.com'. You may need to adjust the proxy settings in Gradle.
- Unknown host 'android.oa.com'. You may need to adjust the proxy settings in Gradle.
- Error: unknown host ‘android.oa.com'.You may need to adjust the proxy setting in Gradle.
- Error: unknown host ‘android.oa.com'.You may need to adjust the proxy setting in Gradle.
- Unknown host 'android.oa.com'. You may need to adjust the proxy settings in Gradle.
- unknow host service.gradle.org, you may need adjust the proxy settings in gradle
- You may need to adjust the proxy settings in Gradle.
- AndroidStudio报错unknow host"akamai.bintray.com".you may need to adjust the proxy settings in gradle
- Androidstudio无法下载报错unknow host"akamai.bintray.com".you may need to adjust the proxy settings in grad
- Visual Studio 2008 Error: The web services enumeration components are not available. You need to reinstall Visual Studio to add web references to your application.
- Error with hilo in NHibernate - “could not read a hi value - you need to populate the table”
- The target assembly contains no service types. You may need to adjust the Code Access Security policy of this assembly." 目标程序集不包含服务类型。可能需要调整此程序集的代码访问安全策略。
- If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
- Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running
- 【Android Studio错误】 If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
- If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.(AS报错)
- You need tcl 8.5 or newer in order to run the Redis test
- VS.NET 2003 Error - The project you are trying to open is a Web project. You need to open it by specifying its URL path.