flutter 使用MobSDK 报错

报错代码如下

FAILURE: Build failed with an exception.* What went wrong:Could not determine the dependencies of task ':app:preDebugBuild'.> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.   > Could not resolve com.mob:MobToolsMCFP:+.     Required by:         project :app         project :app > project :sharesdk      > Failed to list versions for com.mob:MobToolsMCFP.         > Unable to load Maven meta-data from https://google.bintray.com/exoplayer/com/mob/MobToolsMCFP/maven-metadata.xml.            > Could not get resource 'https://google.bintray.com/exoplayer/com/mob/MobToolsMCFP/maven-metadata.xml'.               > Could not GET 'https://google.bintray.com/exoplayer/com/mob/MobToolsMCFP/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

解决方案:

打开External Libraries--Flutter Plugins--image_picker--android--build.gradle,找到如下代码,注释掉Maven的三行代码,这个错误就解决掉了。期间android studio可能会提示,直接选择我要编辑就可以

rootProject.allprojects {
    repositories {
        google()
        jcenter()
       /* maven {
            url 'https://google.bintray.com/exoplayer/'
        } */
    }
}

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值