1. 项目构建问题:https://jcenter.bintray.com相关文件缺失,下载失败
问题出现:新安装或者升级至android stuido 3.4
问题表现:未找到资源或下载失败https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk
问题原因:https://jcenter.bintray.com无法连接或者被禁
解决办法:
在build.gradle中指定项目构建地址为阿里云“http”库地址
buildscript {
repositories {
google()
jcenter(){url 'http://maven.aliyun.com/nexus/content/groups/public/'}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google(){url 'http://maven.aliyun.com/nexus/content/groups/public/'}
jcenter()
}
}
如上:
在两处jcenter()后添加:“{url 'http://maven.aliyun.com/nexus/content/groups/public/'}
最后,重新构建项目解决!