build apk时失败 报错 Could not determine the dependencies of task ‘:app:lintVitalRelease‘.

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 协议
    }
    // 其他仓库配置
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值