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