【已解决】Could not resolve all dependencies for configuration ':app:_prodDebugApkCopy'.


Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_prodDebugApkCopy'.
   > Could not resolve com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+.
     Required by:
         porject:app:unspecified
      > Could not resolve com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+.
         > Failed to list versions for com.tencent.mm.opensdk:wechat-sdk-android-without-mta.
            > Unable to load Maven meta-data from https://jcenter.bintray.com/com/tencent/mm/opensdk/wechat-sdk-android-without-mta/maven-metadata.xml.
               > Could not GET 'https://jcenter.bintray.com/com/tencent/mm/opensdk/wechat-sdk-android-without-mta/maven-metadata.xml'.
                  > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Connection timed out: connect
      > Could not resolve com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+.
         > Failed to list versions for com.tencent.mm.opensdk:wechat-sdk-android-without-mta.
            > Unable to load Maven meta-data from https://jitpack.io/com/tencent/mm/opensdk/wechat-sdk-android-without-mta/maven-metadata.xml.
               > Could not GET 'https://jitpack.io/com/tencent/mm/opensdk/wechat-sdk-android-without-mta/maven-metadata.xml'.
                  > Connect to jitpack.io:443 [jitpack.io/104.24.23.62, jitpack.io/104.24.22.62] failed: Connection timed out: connect



以上是错误信息

注释掉报错的位置,在build.gradle依赖中

com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+

然后同步,同步成功后再取消注释,再同步,问题就解决了。


你可能感兴趣的:(随笔)