在build.gradle中添加個
compile files('libs/alipaySdk-20170922.jar')
就一直報這個錯誤
Error:Could not resolve all files for configuration ':app:debugAndroidTestRuntimeClasspath'.
> Failed to transform file 'alipaySdk-20170932.jar' to match attributes {artifactType=android-classes} using transform JarTransform
> Transform output file E:\AndroidStudioProjects\CcMall\app\libs\alipaySdk-20170932.jar does not exist.
加上Google()也沒用:
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
當時我就呵呵了,怎么可能這可是支付寶官方的SDK;
多方排查,有去螞蟻金服的官網看看,以為是百川SDK UTDID沖突;
后來發現問題后,有一種想抽死自己的沖動;
竟然是沒有添加jar包,沒有添加它:
記錄一下給自己提個醒,應該是使用build.gradle直接添加習慣了;