Error:Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.tencent.

android studio的build.gradle中引入 

implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.3.1'

报错:


Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.3.1. Open File Show Details

解决方式:

在Android Sudio安装优化配置时,将Gradle设置为了离线工作模式

解决方法:只需打开File->Settings->Build,Execution,Deployment->Gradle->取消offline work勾选

仅为记录此错误,如不能解决问题请尝试其他方式

猜你喜欢

转载自blog.csdn.net/fepengwang/article/details/87911998