完善资料让更多小伙伴认识你,还能领取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目录下面^_^
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
【润开鸿HH-SCDAYU800A开发板试用体验】润开鸿HH-SCDAYU800A开发板(一)
82 浏览 0 评论
456 浏览 0 评论
支持OpenHarmony操作系统!飞凌OK527N-C开发板免费试用
663 浏览 0 评论
搭载OpenHarmony 5.0系统!视美泰M-K1HSE开发板免费试用
1133 浏览 0 评论
【贝启科技BQ3568HM开源鸿蒙开发板深度试用报告】3-ubuntu18.04虚拟机开发环境搭建
426 浏览 0 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-6-29 20:11 , Processed in 0.768281 second(s), Total 74, Slave 58 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191