编译问题追踪 :Direct local .aar file dependencies are not supported when building an AAR.
Dependencies
A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.
项目地址:https://gitcode.com/gh_mirrors/de/Dependencies
·
问题点
升级了AGP至 7.0之后。
release apk的时候 提示如下错误:
Direct local .aar file dependencies are not supported when building an AAR.
分析
解决问题有两个思路 :
- 使用 flatDir 构建本地repo
//本地包仓库
repositories {
flatDir { dirs 'aars' }
}
dependencies {
compile(name: 'newcamera-release', ext: 'aar')
}
- 使用build.gradle 构建本地repo
- 新建build.gradle
configurations.maybeCreate("default")
artifacts.add("default", file('XXX.aar'))
- 在settings.gradle中include
include(":localrepo)
- 在模块中使用
api project(":localrepo")
总结
升级AGP套件就是事多
不过被动接受新技术。 能升就升吧
A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.
最近提交(Master分支:4 个月前 )
1997a400 - 4 年前
2f423539 - 4 年前
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐


所有评论(0)