完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我在devstudio 的library中引用本地har库, build时报如下错误:
Error:The HAR generated by the library project is corrupted. The dependencies of the local HAR file are not supported during HAR building because the classes and HarmonyOS resources in the local HAR file dependencies are not packaged in the generated HAR 怎么向Android一样, 在library库的gradle调用repositories { flatDir { dirs 'libs' } } 就可以正常的build和运行 |
|
相关推荐
2个回答
|
|
本地库其实就是添加model,如果需要使用har包,需要通过maven仓库的形式引用。
|
|
|
|
可以放到libs目录下面^_^
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
报名开启!第二届OpenHarmony开发者大会2024重磅来袭!
398 浏览 0 评论
用P30手机USB接口进行连接测试时,在DevEco Studio中启动项目报错怎么解决
971 浏览 1 评论
878 浏览 1 评论
802 浏览 0 评论
432 浏览 0 评论
20093 浏览 88 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-5-16 19:18 , Processed in 0.640287 second(s), Total 73, Slave 56 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号