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
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)

更多关于HarmonyOS 鸿蒙Next 使用云数据库(ArkTS API9以上)出现问题的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
感谢,应该就是这个原因,现在已经能跑起来了,可能有一些小问题,但问题不大,
模块级下的build-profile.json5:

重构项目:

亲,我也是按照官方示例下载Demo,修改后运行,提示 libagccrypto.so模块没有验证,云数据库运行不起来,提出如下图,请帮忙
同问,有没有解决?
看我4楼发的那个图片,模块级下的build-profile.json5修改一下,应该就没问题了,其次就是注意oh-package.json5里面的包要导全了,再不行就重构一下项目(具体怎么重构看一下4楼我发的图片),
已经解决
你好,我也是你这种情况,但是我还是没办法把数据发到云存储那边,请问你解决了吗?
在HarmonyOS鸿蒙Next中使用云数据库(ArkTS API9以上)时,若出现问题,可能是以下原因之一:
-
API版本不匹配:确保使用的ArkTS API版本为9或以上,低版本可能不支持云数据库功能。
-
云数据库配置错误:检查云数据库的初始化配置,包括AppID、AppKey、Region等是否正确填写。
-
权限未开启:确认应用已获取必要的云数据库访问权限,如网络权限和存储权限。
-
网络问题:云数据库依赖网络连接,检查设备网络状态是否正常。
-
数据库操作异常:检查数据库操作代码,如增删改查的逻辑是否正确,避免空指针或数据类型不匹配等问题。
-
SDK未正确集成:确认云数据库SDK已正确集成到项目中,且版本与ArkTS API兼容。
-
云服务状态异常:检查华为云服务是否正常运行,可能存在服务端问题。
若问题仍未解决,可查阅鸿蒙开发者文档或相关技术论坛获取更多信息。