Could not find any matches for com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+ as no versions of com.tencent.mm.opensdk:wechat-sdk-android-with-mta are available.
Could not find any matches for top.zibin:Luban-turbo:1.+ as no versions of top.zibin:Luban-turbo are available.
以上报错提示
解决:
找到 该插件的build.gradle 并替换jcenter 修改为国内可访问的站点即可
repositories {
// jcenter()
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
}
dependencies {
compile 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+'
}
另外一个同样替换
补充一个
A build operation failed.
Could not resolve all dependencies for configuration ':app:detachedConfiguration4'.
Could not resolve all dependencies for configuration ':app:detachedConfiguration4'.
Using insecure protocols with repositories, without explicit opt-in, is unsupported.
在 build.gradle 的 repositories 块中添加以下内容:
1.强制使用 HTTPS:如果仓库支持 HTTPS 协议,将所有仓库地址更改为 HTTPS。
2.允许 HTTP 访问:在 build.gradle 文件中显式允许 HTTP 协议,但建议谨慎使用该方式,因为这样可能会带来安全风险。
repositories {
maven {
url "http://your-insecure-repo-url"
allowInsecureProtocol true // 显式允许使用 HTTP 协议
}
// 其他仓库配置
}