当前位置:网站首页>添加构建依赖项报错
添加构建依赖项报错
2022-07-28 21:54:00 【锐湃】
Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error).
添加构建依赖项: https://developer.android.google.cn/studio/build/dependencies#remote-repositories
添加百度地图的AAR时,直接运行没报错,但 ReBuild 时报错,
implementation fileTree(dir: 'libs', include: ['*.aar'])
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.aar"))))
可以尝试在 map module 中使用 compileOnly,而在 app module 下使用 implementation解决报错。
参考
https://blog.csdn.net/yeshennet/article/details/114331818
作者:_10_01_
链接:https://www.jianshu.com/p/797773831046
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
边栏推荐
- How to add the index of a set in mongodb to another set in mongodb
- 2022 welder (Junior) work license questions and answers
- 事件抽取文献整理(2018)
- [self] - question brushing - peak value
- Compatibility description between kingbasees and Oracle (3. Common functions)
- 剑指 Offer 64. 求1+2+…+n,逻辑运算符短路效应
- AUTOCAD——Excel表格导入CAD、CAD合并两兄弟
- CV目标检测模型小抄(2)
- 2022 G2 power plant boiler stoker examination question bank simulated examination platform operation
- 22 Niu Ke multi school Day1 J - serval and essay heuristic merging
猜你喜欢

Okaleido生态核心权益OKA,尽在聚变Mining模式

Merkle tree

Wechat applet development ④

field injection is not recommended 的解决办法

Wechat applet development ③

A new generation of ultra safe cellular battery, Sihao aipao, will be available from 139900 yuan

22 Niuke multi school Day1 I - Introduction to chiitoitsu DP

2022 R2 mobile pressure vessel filling test question simulation test platform operation

What if win11 cannot find the DNS address? Win11 can't find DNS and can't access the web page solution

LabVIEW对VISA Write和Read函数的异步和同步
随机推荐
MySQL transaction and storage system
深度之眼(十八)——偏导数
金仓数据库 KingbaseES与Oracle的兼容性说明(2. 数据类型)
Design idea of room inventory in hotel reservation system database
2022 simulated examination platform operation of hoisting machinery command examination questions
浪潮ClusterEngineV4.0 远程命令执行漏洞 CVE-2020-21224
Class, leetcode919 -- complete binary tree inserter
Inspur clusterenginev4.0 remote command execution vulnerability cve-2020-21224
智能垃圾桶(七)——SG90舵机的介绍与使用(树莓派pico实现)
机器学习问题笔记
How to add the index of a set in mongodb to another set in mongodb
How to open a profitable gym? I tell you from one year's experience that don't fall in love
2022年R2移动式压力容器充装考题模拟考试平台操作
Rhce第一天
LabVIEW对VISA Write和Read函数的异步和同步
苹果官网正在更新维护 Apple Store,国行 iPhone 13 / Pro 等产品将最高优惠 600 元
npm更换最新淘宝镜像
如何开一家盈利的健身房?我用1年回本的经验告诉你,别谈恋爱
类中多函数填写,LeetCode919——完全二叉树插入器
二舅火了,全网刷屏,他凭什么能治好我的精神内耗?