HarmonyOS 开启编译字节码Har报错

之前把依赖配置到工程的package.json里,不用配到har包,开启编译成字节码的配置是不是必须得配置到har包的dependencies里了。现在make module报错如下:

ERROR: ArkTS:ERROR Failed to resolve OhmUrl.
Error Message: Failed to get a resolved OhmUrl for "/Users/xxx/gitdir/analytics/common/src/main/ts/encoder.ts" imported by "/Users/xxx/gitdir/analytics/common/Index.ts".
  * Try the following:
> Check whether the module which /Users/xxx/gitdir/analytics/common/src/main/ts/encoder.ts belongs to is correctly configured.
  > Check the corresponding file name is correct(including case-sensitivity).
COMPILE RESULT:FAIL {ERROR:2 WARN:27}
* Try the following:
> Check whether undefined attributes or methods are used in the hvigorconfig.ts and hvigorfile.ts files.
  > Go to the official website for help
  > More info: https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/ide-hvigor-faqs-0000001233028585-V5#section119742124315
> hvigor ERROR: BUILD FAILED in 1 s 439 ms
Process finished with exit code -1
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
HarmonyOS
2025-01-10 08:39:03
浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
fox280

开启编译成字节码的配置是必须得配置到字节码har包的dependencies,远程har没有问题,本地源码har需要配置。

分享
微博
QQ
微信
回复
2025-01-10 11:56:21


相关问题
HarmonyOS是否支持反编译字节
970浏览 • 1回复 待解决
HarmonyOS 字节HAR的作用是什么
409浏览 • 1回复 待解决
HarmonyOS 字节插装能力
431浏览 • 1回复 待解决
ArkTS有无字节增强技术
2379浏览 • 1回复 待解决
HarmonyOS 引入har编译失败
684浏览 • 1回复 待解决
HarmonyOS db开启事务报错
342浏览 • 1回复 待解决
HarmonyOS har拆包报错
961浏览 • 1回复 待解决
HarmonyOS 编译flutter报错
645浏览 • 1回复 待解决
mysql客户端怎么开启编译
3611浏览 • 1回复 待解决
HarmonyOS NDK 运行编译报错
802浏览 • 1回复 待解决
HarmonyOS customScan.start扫报错1000500001
576浏览 • 1回复 待解决
编译har,如何混淆,混淆如何使用
1455浏览 • 1回复 待解决