如何在android studio 3.0中解决这个问题 [英] how to solve this in android studio 3.0

查看:148
本文介绍了如何在android studio 3.0中解决这个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误:未知主机'services.gradle.org'。您可能需要调整Gradle中的代理设置。
启用Gradle'离线模式'并同步项目
了解如何在Gradle中配置HTTP代理

解决方案


  1. 首先你去 https://services.gradle.org/distributions/ 并下载 gradle 4.1-all.zip 然后解压缩此压缩文件

  2. ,然后复制解压缩文件夹并转到驱动器

  3. 按照驱动器路径 C:\程序文件\Android\Android Studio\gradle

  4. 然后通过您的文件夹听到上面的路径

现在您继续使用android studio


  1. 选择文件>项目结构>项目,然后更改gradle版本,如 4.1


  2. 然后继续设置并打开 gradle执行开发。 b

  3. 现在选择 gradle ,然后选择使用本地gradle 并选择gradle的路径4.1并选择 Offline Work 然后点击应用确定


其他错误然后检查这个链接:在Android上创建新项目,错误:Studio未知主机'services.gradle.org'

我希望它对你有用


Error:Unknown host 'services.gradle.org'. You may need to adjust the proxy settings in Gradle. Enable Gradle 'offline mode' and sync project
Learn about configuring HTTP proxies in Gradle

解决方案

  1. First you go https://services.gradle.org/distributions/ and download gradle 4.1-all.zip
  2. then Extract this zip file
  3. after that copy extract folder and go to the Drive
  4. Follow Drive path C:\Program Files\Android\Android Studio\gradle
  5. then Past your folder hear above path

Now you go on android studio

  1. Select file>Project Structure>Project then change gradle version like 4.1

  2. then you go on setting and open gradle execution development

  3. now select gradle and then select use local gradle and select the path of a gradle 4.1 also select a Offline Work

  4. then Click Apply and ok

Other Error then check this link also: Create new project on Android, Error: Studio Unknown host 'services.gradle.org'

i hope it's useful for u

这篇关于如何在android studio 3.0中解决这个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆