HarmonyOS 鸿蒙Next:Currently module for 'libagccrypto.so' is not verified.大佬们,这个问题怎么解决啊?

发布于 1周前 作者 yuanlaile 来自 鸿蒙OS

HarmonyOS 鸿蒙Next:Currently module for ‘libagccrypto.so’ is not verified.大佬们,这个问题怎么解决啊?

[Compile Result] ArkTS:WARN File: D:/Huawei/DevEcoStudioProjects/CloudHerdog/Application/entry/oh_modules/.ohpm/@hw-agconnect+hmcore@1.0.2/oh_modules/@hw-agconnect/hmcore/src/main/ets/base/aegis/AegisAes.ts:4:23

[Compile Result]  Currently module for ‘libagccrypto.so’ is not verified. If you’re importing napi, its verification will be enabled in later SDK version. Please make sure the corresponding .d.ts file is provided and the napis are correctly declared.

[Compile Result] [webpack-cli] TypeError: Cannot read properties of undefined (reading ‘replace’)

[Compile Result]     at processNodeModulesFile (D:\Huawei\Sdk\openharmony\9\ets\build-tools\ets-loader\lib\gen_abc_plugin.js:1:8295)

[Compile Result]     at processEtsModule (D:\Huawei\Sdk\openharmony\9\ets\build-tools\ets-loader\lib\gen_abc_plugin.js:1:9306)

[Compile Result]     at D:\Huawei\Sdk\openharmony\9\ets\build-tools\ets-loader\lib\gen_abc_plugin.js:1:13650

[Compile Result]     at Set.forEach (<anonymous>)

[Compile Result]     at handleFullModuleFiles (D:\Huawei\Sdk\openharmony\9\ets\build-tools\ets-loader\lib\gen_abc_plugin.js:1:13052)

[Compile Result]     at GenAbcPlugin.handleFinishModules (D:\Huawei\Sdk\openharmony\9\ets\build-tools\ets-loader\lib\gen_abc_plugin.js:2:3272)

[Compile Result]     at Hook.eval [as callAsync] (eval at create (D:\Huawei\Sdk\openharmony\9\ets\build-tools\ets-loader\node_modules\webpack\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:40:1)

[Compile Result]     at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (D:\Huawei\Sdk\openharmony\9\ets\build-tools\ets-loader\node_modules\webpack\node_modules\tapable\lib\Hook.js:18:14)

[Compile Result]     at Compilation.finish (D:\Huawei\Sdk\openharmony\9\ets\build-tools\ets-loader\node_modules\webpack\lib\Compilation.js:2714:28)

[Compile Result]     at D:\Huawei\Sdk\openharmony\9\ets\build-tools\ets-loader\node_modules\webpack\lib\Compiler.js:1182:19

[Compile Result] Compile error occurred. Fix it based on the above message.

PixPin_2024-12-13_20-58-12.png

设备管理器运行华为手机模拟器有用,但是pages页面预览用不了

2 回复
看报错 Cannot read properties of undefined ,无法读取 undefined 的属性,先检查下版本方面的问题呢,如果版本方面没问题,换真机去运行试下呢,我记得预览器里没办法操作 native

面对HarmonyOS鸿蒙系统中出现的“Currently module for ‘libagccrypto.so’ is not verified”问题,这通常意味着系统安全机制检测到某个模块(在此为libagccrypto.so库文件)未经官方验证或签名。以下是一些可能的解决步骤:

  1. 确认来源:首先确认libagccrypto.so文件是从官方或可信渠道获取的。非官方或篡改过的文件可能会导致验证失败。

  2. 系统更新:检查并安装最新的鸿蒙系统更新。有时,系统更新会修复已知的安全验证问题或添加对新模块的支持。

  3. 重新签名:如果您有权限和能力,可以尝试重新对libagccrypto.so文件进行签名,以符合鸿蒙系统的安全要求。但这通常涉及复杂的开发和安全知识。

  4. 检查开发者模式:在开发者选项中,查看是否有关于模块验证的设置,尝试调整这些设置以允许未验证模块的运行(注意,这可能降低系统安全性)。

  5. 联系开发者:如果libagccrypto.so是第三方开发的库,联系开发者获取帮助,确认是否存在已知的验证问题或提供已签名的版本。

如果问题依旧没法解决请联系官网客服,官网地址是:https://www.itying.com/category-93-b0.html

回到顶部