android解决Unknown host 'jcenter.bintray.com'问题
16lz
2021-01-23
1.原因jcenter.bintray.com被墙了
2.修改build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.buildscript { repositories { maven { url 'https://maven.aliyun.com/repository/jcenter' } jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.0.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }}allprojects { repositories { jcenter() maven { url 'https://maven.aliyun.com/repository/jcenter' } }}task clean(type: Delete) { delete rootProject.buildDir}
更多相关文章
- Android Too many classes in --main-dex-list 错误原因及Androi
- Android 原生系统给电信发短信出现乱码或者收不到的原因
- Android下基于OpenGL的程序会发生纹理丢失的原因
- Android实现开机自启动及开机自启动失败原因
- imageButton被边框包围的原因、解决办法
- Android 5.0使用android:onClick属性出现崩溃的原因及解决方案
- android 工程里缺少 R.java 文件原因和解决方法
- 将服务器端字符读取至android的文本控件,换行符变成了黑方块的原
- Android build失败 原因总结: