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}


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM