热门
最新
红包
立Flag
投票
同城
我的
发布
CSDN App 扫码分享
评论
1
打赏
- 复制链接
- 举报
下一条:
各位大佬们,请问下为什么在下面这个配置里面,加了allowInsecureProtocol = true后会报那个错误①啊,是我哪里没有配置对吗,然后去掉这句话就会报错误②
buildscript {
repositories {
// 添加Mob Maven地址
allowInsecureProtocol = true
maven {url "http://mvn.mob.com/android"}
}
dependencies {
// 注册MobSDK
classpath "com.mob.sdk:MobSDK:+"
}
}
错误①:
Could not set unknown property 'allowInsecureProtocol' for repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler
错误②:
Could not resolve all dependencies for configuration 'detachedConfiguration1'.
> Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven(http://mvn.mob.com/android)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols.