问题描述

首次打开别人的安卓项目,Gradle下载一些文件时报错Time out,无法下载某些库。

解决方法

在工程中Gradle文件夹下的build.gradle文件中做如下修改:
将下列代码块写在jcenter()之前,确保先访问maven()里面的连接。

maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}


参考:安卓 android studio 报错 Unknown host ‘jcenter.bintray.com’. You may need to adjust the proxy settings in Gradle.

Android studio 报错 Unknown host 'jcenter.bintray.com'相关推荐

  1. 打开Android Studio报错required plugin “Android Support” is disabled

    打开Android Studio报错 Plugin Error: required plugin "Android Support" is disabled 更详细的错误信息如下: ...

  2. the android emulator process,Android studio报错:The emulator process for AVD (xxx) was killed

    背景:重做系统后重新配置Android studio 安装虚拟机后无法启动 log中显示为启动AVD的进程被杀 控制台显示为:在虚拟机列表里没有找到所要启动的AVD的名称 首先考虑是BIOS问题:发现 ...

  3. Android Studio报错: Alternatively, to transfer the license agreements from one workstation to another

    1.Android Studio报错:Alternatively, to transfer the license agreements from one workstation to another ...

  4. Android Studio报错:E/EGL_emulation: tid 3197: eglSurfaceAttrib(1199): error 0x3009 (EGL_BAD_MATCH)

    @[toc](Android Studio报错:E/EGL_emulation: tid 3197: eglSurfaceAttrib(1199): error 0x3009 (EGL_BAD_MAT ...

  5. Android Studio报错:Please configure Android SDK

    Android Studio报错:Please configure Android SDK 如图: 解决方案:点击 configure 进入工程结构,然后选择属性配置,在右侧的 Build Tools ...

  6. access中的android sdk,Android Studio报错unable to access android sdk add-on list解决方案

    一.问题 初次安装Android Studio,启动后,报错如下: unable to access android sdk add-on lis 如图: 二.原因 AS启动后,会在默认路径下检测是否 ...

  7. SDK emulator directory is missing | Android Studio报错

    新手安装Android Studio报了一堆错:包括但不限于the android sdk location cannot at be the filesystem root,SDK emulator ...

  8. Android studio 报错Multiple annotations of type `dalvik.annotation.EnclosingClass`

    在Android studio中报错Multiple annotations of type dalvik.annotation.EnclosingClass 看不出来什么问题,然后在vscode代开 ...

  9. Android studio 报错解决:Error:SSL peer shut down incorrectly

    此文首发于我的Jekyll博客:zhang0peter的个人博客 很久没用 Android studio 了,刚刚在打开一个项目的biuld过程中报错: SSL peer shut down inco ...

  10. Android Studio报错解决:droid.tools.idea.welcome.install.WizardException: SDK tools directory is missing

    早上在用Android Studio想下载最新的sdk,结果打开时报错: com.android.tools.idea.welcome.install.WizardException: SDK too ...

最新文章

  1. 从一个数组中找出 N 个数,其和为 M 的所有可能--最 nice 的解法
  2. Mish激活函数,ReLU的继任者
  3. 【struts2+hibernate+spring项目实战】java监听器实现权限控制系统和资源获取优化(ssh)
  4. 情感分析的现代方法(包含word2vec Doc2Vec)
  5. 静态成员变量的初始化,vector类型变量初始化
  6. C++cycle sort循环排序的实现算法(附完整源码)
  7. C# 模拟键盘操作SendKey(),SendKeys()
  8. JAVA:说说你对序列化的理解
  9. 高精度测量让交会对接更“温柔”
  10. web应用程序servlet的映射名称的规则及请求过程
  11. Atiti.ui原理与gui理论
  12. 分析微博游戏名人数据
  13. html自定义文本框,JavaScript自定义文本框光标
  14. 微信小程序在线考试系统 毕业设计(2)分类
  15. mac电脑重装系统操作步骤
  16. DIY手动定制一个属于自己的软件安装管理器工具盘[二]
  17. ORA-03113数据库无法正常启动
  18. 中文词性标注学习笔记(一)---词性标注概念
  19. hypervisor - qnx
  20. K8S POD无限重启问题

热门文章

  1. spring cloud gateway 源码解析(4)跨域问题处理
  2. 00-JavaScript基础-基本概念
  3. Spring(Data-Rest)
  4. 无共享模式的数据架构
  5. ACdream 1728 SJY's First Task
  6. 关于TP模板的目录设置和渲染问题
  7. linux kill
  8. DHCP服务的介绍及配置详解
  9. Windows自动压缩rar以及根据日期删除脚本
  10. 我眼中的2011年互联网大事记