unity 打包报错Could not find com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.1.4

详细信息
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}

原文地址:https://www.cnblogs.com/wang-jingyuan/p/13219157.html