当前位置: 代码迷 >> 综合 >> Could not find any matches for com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+ as no versions处理
  详细解决方案

Could not find any matches for com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+ as no versions处理

热度:89   发布时间:2023-10-08 23:23:39.0

前言:昨天运行项目遇到很奇葩的报错,我上一分钟运行项目还是好好的什么都没改动,下一分钟运行就报错了,特此记录下.

Could not find any matches for com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+ as no versions处理

Error: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.
Required by:project :userapp
<a href="searchInBuildFiles">Search in build.gradle files</a>

上面这段英文翻译意思就是我的项目里面build文件配置的om.tencent.mm .opensdk:wechat-sdk-android-with-mta:+这个依赖没有下载成功,应该是jcenter那边出问题了.那我们就以jar包的形式来引用吧,

1.首先打开build文件注释掉 compile ‘com.tencent.mm .opensdk:wechat-sdk-android-with-mta:+这行

Could not find any matches for com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+ as no versions处理

2.下载libammsdk.jar包复制到你项目的libs文件夹里面,然后add to path 一下,然后重新导包再Clean一下就可以啦.

附libammsdk.jar包下载地址
http://pan.baidu.com/s/1b3jRzS

  相关解决方案