Could not download wechat-sdk-android-with-mta.jar (com.tencent.mm.opensdk:wechat-sdk-android-wit...

今天刚运行项目突然报错 Could not download wechat-sdk-android-with-mta.jar (com.tencent.mm.opensdk:wechat-sdk-android-with-mta:5.1.6): No cached version available for offline mode在AndroidStudio使用微信SDK是时突然遇到implementation 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+'无法编译同步问题而且官网也是同样建议使用:

dependencies {
    compile 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+'
}
或者
dependencies {
    compile 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+'
}

今天浏览到文章https://www.jianshu.com/p/ed47323897de
,在这里https://bintray.com/wechat-sdk-team/maven可以查看到wechat-sdk的最新版本号,指定为最新版本号,就gradle就成功sync了。

你可能感兴趣的:(Could not download wechat-sdk-android-with-mta.jar (com.tencent.mm.opensdk:wechat-sdk-android-wit...)