接入穿山甲广告sdk时候提示Failed to transform file 'open_ad_sdk.aar'

  • Creator 版本:2.3.3

  • 目标平台: Android ApiLevel-28

  • 首个报错:2.3.3

  • 之前哪个版本是正常的: 2.1.4

  • 编辑器操作系统: Win7

  • 重现概率: 必现

  • 重现方式:最近项目组准备接入穿山甲广告sdk,我们的另一个休闲项目使用2.1.4版本成功接入穿山甲。当我们使用2.3.3创建一个HelloWorld空工程接入时,工程提示报错如下:
    ERROR: Unable to resolve dependency for ‘:hello_world@debug/compileClasspath’: Failed to transform file ‘open_ad_sdk.aar’ to match attributes {artifactType=processed-aar} using transform IdentityTransform

  • 引入流程是:

先拷贝open_ad_sdk.aar到工程下的libs文件夹,然后在工程build.gradle添加如下内容:
repositories {
flatDir {
dirs ‘libs’
}
}

dependencies {
implementation files(‘libs/open_ad_sdk.aar’)
}
我试了很多次都会出现这个问题,项目一直准备接入广告上线,非常棘手,希望cocos引擎组大佬可以帮忙解决一下。

自己先顶一个 @jare

https://mp.weixin.qq.com/s/yzGOzRKRPNpCFINdutm5mg

你看看是不是这个问题···
我觉得应该是·········

implementation fileTree(dir: ‘libs’, include: [’*.jar’])
implementation(name: ‘com.xxxx.xxxx.xx’, ext:‘aar’)
ARR这么引入

哈哈,我这个是要引入一个.aar,不过还是谢了~

写错了而已 aar就这么搞的

···········
jar aar 是一样的