HarmonyOS 鸿蒙Next 使用云数据库(ArkTS API9以上)出现问题

HarmonyOS 鸿蒙Next 使用云数据库(ArkTS API9以上)出现问题 我用的2023最新版的DevEcoStudio,想使用云数据库来着,导入了hmcore和could包之后就这样了,根本运行不起来吗,到底怎么办

按照下面这个链接的步骤做的,有谁知道怎么回事吗?

SDK版本更新说明-HarmonyOS(ArkTS API 9及以上)-端侧通过SDK使用云数据库-云数据库 for Object | 华为开发者联盟 (huawei.com)

E:\DevEcoAutoConfig\nodejs\node.exe C:\Users\Administrator.hvigor\project_caches\9993466e0757087ab2b3197e0eddc1b2\workspace\node_modules@ohos\hvigor\bin\hvigor.js --mode module -p module=entry@default -p product=default -p debuggable=true assembleHap

hvigor UP-TO-DATE :entry:default@PreBuild

hvigor UP-TO-DATE :entry:default@GenerateMetadata

hvigor UP-TO-DATE :entry:default@MergeProfile

hvigor Finished :entry:default@BuildNativeWithCmake… after 1 ms

hvigor UP-TO-DATE :entry:default@GenerateLoaderJson

hvigor UP-TO-DATE :entry:default@MakePackInfo

hvigor UP-TO-DATE :entry:default@ProcessProfile

hvigor Finished :entry:default@BuildNativeWithNinja… after 1 ms

hvigor UP-TO-DATE :entry:default@ProcessResource

hvigor ERROR: Failed :entry:default@ProcessLibs

hvigor ERROR: 2 file found in ‘lib/arm64-v8a/libagccrypto.so’. This may cause unexpected errors at runtime.

  • E:\allProj\DevEcoStudioProjects\zhibi2\Application\entry\oh_modules.ohpm@hw-agconnect+crypto-ohos@1.1.2\oh_modules@hw-agconnect\crypto-ohos\libs\arm64-v8a\libagccrypto.so
  • E:\allProj\DevEcoStudioProjects\zhibi2\Application\entry\oh_modules.ohpm@hw-agconnect+hmcore@1.0.0\oh_modules@hw-agconnect\hmcore\libs\arm64-v8a\libagccrypto.so

2 file found in ‘lib/arm64-v8a/libagcmbedtls.so’. This may cause unexpected errors at runtime.

  • E:\allProj\DevEcoStudioProjects\zhibi2\Application\entry\oh_modules.ohpm@hw-agconnect+crypto-ohos@1.1.2\oh_modules@hw-agconnect\crypto-ohos\libs\arm64-v8a\libagcmbedtls.so
  • E:\allProj\DevEcoStudioProjects\zhibi2\Application\entry\oh_modules.ohpm@hw-agconnect+hmcore@1.0.0\oh_modules@hw-agconnect\hmcore\libs\arm64-v8a\libagcmbedtls.so

2 file found in ‘lib/armeabi-v7a/libagccrypto.so’. This may cause unexpected errors at runtime.

  • E:\allProj\DevEcoStudioProjects\zhibi2\Application\entry\oh_modules.ohpm@hw-agconnect+crypto-ohos@1.1.2\oh_modules@hw-agconnect\crypto-ohos\libs\armeabi-v7a\libagccrypto.so
  • E:\allProj\DevEcoStudioProjects\zhibi2\Application\entry\oh_modules.ohpm@hw-agconnect+hmcore@1.0.0\oh_modules@hw-agconnect\hmcore\libs\armeabi-v7a\libagccrypto.so

2 file found in ‘lib/armeabi-v7a/libagcmbedtls.so’. This may cause unexpected errors at runtime.

  • E:\allProj\DevEcoStudioProjects\zhibi2\Application\entry\oh_modules.ohpm@hw-agconnect+crypto-ohos@1.1.2\oh_modules@hw-agconnect\crypto-ohos\libs\armeabi-v7a\libagcmbedtls.so
  • E:\allProj\DevEcoStudioProjects\zhibi2\Application\entry\oh_modules.ohpm@hw-agconnect+hmcore@1.0.0\oh_modules@hw-agconnect\hmcore\libs\armeabi-v7a\libagcmbedtls.so

2 file found in ‘lib/x86_64/libagccrypto.so’. This may cause unexpected errors at runtime.

  • E:\allProj\DevEcoStudioProjects\zhibi2\Application\entry\oh_modules.ohpm@hw-agconnect+crypto-ohos@1.1.2\oh_modules@hw-agconnect\crypto-ohos\libs\x86_64\libagccrypto.so
  • E:\allProj\DevEcoStudioProjects\zhibi2\Application\entry\oh_modules.ohpm@hw-agconnect+hmcore@1.0.0\oh_modules@hw-agconnect\hmcore\libs\x86_64\libagccrypto.so

2 file found in ‘lib/x86_64/libagcmbedtls.so’. This may cause unexpected errors at runtime.

  • E:\allProj\DevEcoStudioProjects\zhibi2\Application\entry\oh_modules.ohpm@hw-agconnect+crypto-ohos@1.1.2\oh_modules@hw-agconnect\crypto-ohos\libs\x86_64\libagcmbedtls.so
  • E:\allProj\DevEcoStudioProjects\zhibi2\Application\entry\oh_modules.ohpm@hw-agconnect+hmcore@1.0.0\oh_modules@hw-agconnect\hmcore\libs\x86_64\libagcmbedtls.so

Detail: Rename the native compilation products of the module, or configure napiLibFilterOption in E:\allProj\DevEcoStudioProjects\zhibi2\Application\entry\build-profile.json5.

hvigor ERROR: BUILD FAILED in 188 ms

Process finished with exit code -1


更多关于HarmonyOS 鸿蒙Next 使用云数据库(ArkTS API9以上)出现问题的实战教程也可以访问 https://www.itying.com/category-93-b0.html

9 回复
so重名了,按照文档配置一下试试!

[https://developer.harmonyos.com/cn/docs/documentation/doc-guides-V3/build_config-0000001052902431-V3?catalogVersion=V3#section19449193613389](https://developer.harmonyos.com/cn/docs/documentation/doc-guides-V3/build_config-0000001052902431-V3?catalogVersion=V3#section19449193613389)

![cke_474.png](https://alliance-communityfile-drcn.dbankcdn.com/FileServer/getFile/cmtybbs/374/067/764/2850086000374067764.20231027094057.36733932251881236768069946288394:50001231000000:2800:BE187A349F65218896A519A6F5D76B8D7F2FA8F5FA585B68A78EB5F3F2BFA561.png)

更多关于HarmonyOS 鸿蒙Next 使用云数据库(ArkTS API9以上)出现问题的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


感谢,应该就是这个原因,现在已经能跑起来了,可能有一些小问题,但问题不大,

模块级下的build-profile.json5:

![cke_1520.png](https://alliance-communityfile-drcn.dbankcdn.com/FileServer/getFile/cmtybbs/309/605/732/0070086000309605732.20231117214148.05405384708132216527440009344870:50001231000000:2800:25258776E622AB825B93DBBD8593895C177B8E08E6F340AB63658561D1DD3F41.png)

重构项目:

![无标题.png](https://alliance-communityfile-drcn.dbankcdn.com/FileServer/getFile/cmtybbs/309/605/732/0070086000309605732.20231117214720.01821850368814779348245947689502:50001231000000:2800:4196C4E1C11A500F6273DAA3570A1164A7ECAD47BB5FFDB4DE0D8B4E5F5E0953.png)

亲,我也是按照官方示例下载Demo,修改后运行,提示 libagccrypto.so模块没有验证,云数据库运行不起来,提出如下图,请帮忙

同问,有没有解决?

看我4楼发的那个图片,模块级下的build-profile.json5修改一下,应该就没问题了,其次就是注意oh-package.json5里面的包要导全了,再不行就重构一下项目(具体怎么重构看一下4楼我发的图片),

已经解决

你好,我也是你这种情况,但是我还是没办法把数据发到云存储那边,请问你解决了吗?

在HarmonyOS鸿蒙Next中使用云数据库(ArkTS API9以上)时,若出现问题,可能是以下原因之一:

  1. API版本不匹配:确保使用的ArkTS API版本为9或以上,低版本可能不支持云数据库功能。

  2. 云数据库配置错误:检查云数据库的初始化配置,包括AppID、AppKey、Region等是否正确填写。

  3. 权限未开启:确认应用已获取必要的云数据库访问权限,如网络权限和存储权限。

  4. 网络问题:云数据库依赖网络连接,检查设备网络状态是否正常。

  5. 数据库操作异常:检查数据库操作代码,如增删改查的逻辑是否正确,避免空指针或数据类型不匹配等问题。

  6. SDK未正确集成:确认云数据库SDK已正确集成到项目中,且版本与ArkTS API兼容。

  7. 云服务状态异常:检查华为云服务是否正常运行,可能存在服务端问题。

若问题仍未解决,可查阅鸿蒙开发者文档或相关技术论坛获取更多信息。

回到顶部