Android studio 报错 Unknown host 'jcenter.bintray.com'
问题描述
首次打开别人的安卓项目,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'相关推荐
- 打开Android Studio报错required plugin “Android Support” is disabled
打开Android Studio报错 Plugin Error: required plugin "Android Support" is disabled 更详细的错误信息如下: ...
- the android emulator process,Android studio报错:The emulator process for AVD (xxx) was killed
背景:重做系统后重新配置Android studio 安装虚拟机后无法启动 log中显示为启动AVD的进程被杀 控制台显示为:在虚拟机列表里没有找到所要启动的AVD的名称 首先考虑是BIOS问题:发现 ...
- 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 ...
- 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 ...
- Android Studio报错:Please configure Android SDK
Android Studio报错:Please configure Android SDK 如图: 解决方案:点击 configure 进入工程结构,然后选择属性配置,在右侧的 Build Tools ...
- access中的android sdk,Android Studio报错unable to access android sdk add-on list解决方案
一.问题 初次安装Android Studio,启动后,报错如下: unable to access android sdk add-on lis 如图: 二.原因 AS启动后,会在默认路径下检测是否 ...
- SDK emulator directory is missing | Android Studio报错
新手安装Android Studio报了一堆错:包括但不限于the android sdk location cannot at be the filesystem root,SDK emulator ...
- Android studio 报错Multiple annotations of type `dalvik.annotation.EnclosingClass`
在Android studio中报错Multiple annotations of type dalvik.annotation.EnclosingClass 看不出来什么问题,然后在vscode代开 ...
- Android studio 报错解决:Error:SSL peer shut down incorrectly
此文首发于我的Jekyll博客:zhang0peter的个人博客 很久没用 Android studio 了,刚刚在打开一个项目的biuld过程中报错: SSL peer shut down inco ...
- 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 ...
最新文章
- 从一个数组中找出 N 个数,其和为 M 的所有可能--最 nice 的解法
- Mish激活函数,ReLU的继任者
- 【struts2+hibernate+spring项目实战】java监听器实现权限控制系统和资源获取优化(ssh)
- 情感分析的现代方法(包含word2vec Doc2Vec)
- 静态成员变量的初始化,vector类型变量初始化
- C++cycle sort循环排序的实现算法(附完整源码)
- C# 模拟键盘操作SendKey(),SendKeys()
- JAVA:说说你对序列化的理解
- 高精度测量让交会对接更“温柔”
- web应用程序servlet的映射名称的规则及请求过程
- Atiti.ui原理与gui理论
- 分析微博游戏名人数据
- html自定义文本框,JavaScript自定义文本框光标
- 微信小程序在线考试系统 毕业设计(2)分类
- mac电脑重装系统操作步骤
- DIY手动定制一个属于自己的软件安装管理器工具盘[二]
- ORA-03113数据库无法正常启动
- 中文词性标注学习笔记(一)---词性标注概念
- hypervisor - qnx
- K8S POD无限重启问题