赞
踩
问题报错如下:
/usr/local/bin/node /Users/admin/.hvigor/project_caches/08e11114fe5d1e4ddd3877fbb7765185/workspace/node_modules/@ohos/hvigor/bin/hvigor.js --mode module -p module=entry@default -p product=default 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.
- /Users/admin/DevEcoStudioProjects/relaxtomato/Application/entry/oh_modules/.ohpm/@hw-agconnect+hmcore@1.0.2/oh_modules/@hw-agconnect/hmcore/libs/arm64-v8a/libagccrypto.so
- /Users/admin/DevEcoStudioProjects/relaxtomato/Application/entry/oh_modules/.ohpm/@hw-agconnect+crypto-ohos@1.1.2/oh_modules/@hw-agconnect/crypto-ohos/libs/arm64-v8a/libagccrypto.so
2 file found in 'lib/arm64-v8a/libagcmbedtls.so'. This may cause unexpected errors at runtime.
- /Users/admin/DevEcoStudioProjects/relaxtomato/Application/entry/oh_modules/.ohpm/@hw-agconnect+hmcore@1.0.2/oh_modules/@hw-agconnect/hmcore/libs/arm64-v8a/libagcmbedtls.so
- /Users/admin/DevEcoStudioProjects/relaxtomato/Application/entry/oh_modules/.ohpm/@hw-agconnect+crypto-ohos@1.1.2/oh_modules/@hw-agconnect/crypto-ohos/libs/arm64-v8a/libagcmbedtls.so
2 file found in 'lib/armeabi-v7a/libagccrypto.so'. This may cause unexpected errors at runtime.
- /Users/admin/DevEcoStudioProjects/relaxtomato/Application/entry/oh_modules/.ohpm/@hw-agconnect+hmcore@1.0.2/oh_modules/@hw-agconnect/hmcore/libs/armeabi-v7a/libagccrypto.so
- /Users/admin/DevEcoStudioProjects/relaxtomato/Application/entry/oh_modules/.ohpm/@hw-agconnect+crypto-ohos@1.1.2/oh_modules/@hw-agconnect/crypto-ohos/libs/armeabi-v7a/libagccrypto.so
2 file found in 'lib/armeabi-v7a/libagcmbedtls.so'. This may cause unexpected errors at runtime.
- /Users/admin/DevEcoStudioProjects/relaxtomato/Application/entry/oh_modules/.ohpm/@hw-agconnect+hmcore@1.0.2/oh_modules/@hw-agconnect/hmcore/libs/armeabi-v7a/libagcmbedtls.so
- /Users/admin/DevEcoStudioProjects/relaxtomato/Application/entry/oh_modules/.ohpm/@hw-agconnect+crypto-ohos@1.1.2/oh_modules/@hw-agconnect/crypto-ohos/libs/armeabi-v7a/libagcmbedtls.so
2 file found in 'lib/x86_64/libagccrypto.so'. This may cause unexpected errors at runtime.
- /Users/admin/DevEcoStudioProjects/relaxtomato/Application/entry/oh_modules/.ohpm/@hw-agconnect+hmcore@1.0.2/oh_modules/@hw-agconnect/hmcore/libs/x86_64/libagccrypto.so
- /Users/admin/DevEcoStudioProjects/relaxtomato/Application/entry/oh_modules/.ohpm/@hw-agconnect+crypto-ohos@1.1.2/oh_modules/@hw-agconnect/crypto-ohos/libs/x86_64/libagccrypto.so
2 file found in 'lib/x86_64/libagcmbedtls.so'. This may cause unexpected errors at runtime.
- /Users/admin/DevEcoStudioProjects/relaxtomato/Application/entry/oh_modules/.ohpm/@hw-agconnect+hmcore@1.0.2/oh_modules/@hw-agconnect/hmcore/libs/x86_64/libagcmbedtls.so
- /Users/admin/DevEcoStudioProjects/relaxtomato/Application/entry/oh_modules/.ohpm/@hw-agconnect+crypto-ohos@1.1.2/oh_modules/@hw-agconnect/crypto-ohos/libs/x86_64/libagcmbedtls.so
Detail: Rename the native compilation products of the module, or configure napiLibFilterOption in /Users/admin/DevEcoStudioProjects/relaxtomato/Application/entry/build-profile.json5.
> hvigor ERROR: BUILD FAILED in 383 ms
Process finished with exit code -1
论坛大佬提供的解决方案
so重名了,按照文档配置一下试试!
注意是在Entry下的build-profile.json5文件
重新构建
成功解决
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。