详细信息
A problem occurred configuring root project 'gradleOut'.

Could not resolve all dependencies for configuration ':_debugApkCopy'.
Could not find com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.1.4

解决
在unity mainTemplate中添加
buildscript {
repositories {
google()
jcenter()
//这两句
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
maven{ url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
}

dependencies {
	classpath 'com.android.tools.build:gradle:2.3.0'
	classpath 'com.mob.sdk:MobSDK:+'
}

}

allprojects {
repositories {
flatDir {
dirs 'libs'
}
//这两句
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
maven{ url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
}

}

apply plugin: 'com.android.application'

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
//这一句
compile ('com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.1.4')
DEPS}

相关文章:

  • 2021-08-22
  • 2022-12-23
  • 2021-07-16
  • 2021-10-05
  • 2021-04-19
  • 2021-06-18
  • 2021-10-13
  • 2022-02-07
猜你喜欢
  • 2021-10-31
  • 2021-09-07
  • 2021-07-27
  • 2022-02-14
  • 2021-07-21
  • 2021-09-22
  • 2022-01-21
相关资源
相似解决方案