HarmonyOS 鸿蒙Next集成完联通一键登入sdk后编译直接失败

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

HarmonyOS 鸿蒙Next集成完联通一键登入sdk后编译直接失败

COMPILE RESULT:FAIL {ERROR:1 WARN:416}

    at process.<anonymous> (/Applications/DevEco-Studio.app/Contents/tools/hvigor/hvigor-ohos-plugin/node_modules/@ohos/hvigor-arkts-compose/dist/src/arkts-pack.js:1:4171)

    at process.emit (node:events:517:28)

    at node:internal/process/execution:169:25

    at process.workerOnGlobalUncaughtException [as _fatalException] (node:internal/main/worker_thread:208:15)

> hvigor ERROR: BUILD FAILED in 53 s 699 ms 

Process finished with exit code -1


更多关于HarmonyOS 鸿蒙Next集成完联通一键登入sdk后编译直接失败的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html

2 回复

COMPILE RESULT:FAIL {ERROR:1 WARN:416}

> hvigor ERROR: Error: ArkTS:ERROR Failed to execute es2abc.

Error Message: Failed to emit /Users/allen/harmony/entry/build/default/intermediates/loader_out/default/ets/modules.abc, error: Field {&@bdmap/locsdk/Index&1.0.1.moduleRecordIdx} has different value.

If you're using any cache file generated by older version of SDK, please try cleaning the cache files and rebuild

GenerateProgram Failed!

The execution command of es2abc is: "/Applications/DevEco-Studio.app/Contents/sdk/HarmonyOS-NEXT-DB2/openharmony/ets/build-tools/ets-loader/bin/ark/build-mac/bin/es2abc" --debug-info "@/Users/allen/harmony/entry/build/default/cache/default/default@CompileArkTS/esmodule/debug/filesInfo.txt" --npm-module-entry-list "/Users/allen/harmony/entry/build/default/cache/default/default@CompileArkTS/esmodule/debug/npmEntries.txt" --output "/Users/allen/harmony/entry/build/default/intermediates/loader_out/default/ets/modules.abc" --file-threads "8" --merge-abc "--target-api-version=12" --compile-context-info "/Users/allen/harmony/entry/build/default/cache/default/default@CompileArkTS/esmodule/debug/compileContextInfo.json" --cache-file "@/Users/allen/harmony/entry/build/default/cache/default/default@CompileArkTS/esmodule/debug/modules.cache"

这是具体报错原因

更多关于HarmonyOS 鸿蒙Next集成完联通一键登入sdk后编译直接失败的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


HarmonyOS 鸿蒙Next集成联通一键登入SDK后编译失败,可能是由于SDK版本不兼容、配置错误或环境设置问题。请检查SDK版本是否与HarmonyOS版本匹配,确认集成步骤无误,并检查编译环境设置。此外,清理项目缓存并重新编译也是常见的解决方法。如果问题依旧没法解决,请加我微信,我的微信是itying888。

更多关于HarmonyOS 鸿蒙Next集成完联通一键登入sdk后编译直接失败的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


回到顶部