Using insecure protocols with repositories,without explicit opt-in
Using insecure protocols with repositories,without explicit opt-in,is unsupported
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:classpath'.
> Using insecure protocols with repositories, without explicit opt-in, is unsupported.
解决;
buildscript {
repositories {
google()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
}
}
allprojects {
repositories {
google()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
把以上http://maven.aliyun.com/nexus/content/groups/public/ 换成https://maven.aliyun.com/nexus/content/groups/public/即可