操作步骤:

 

 

一:

   1. 更改了锁屏相关的东西以及修改了ohos.para

   2.删除out中锁屏相关的文件和ohos.para

二:

   1.将相关的修改代码还原回去还是报下列错误

 

编译报错:

上述错误已解决!!!!!

 

 

有劳帮忙看一下下列错误:

 

ERROR at //build/templates/cxx/cxx.gni:870:26: Script returned non-zero exit code.

        handler_result = exec_script(external_deps_script, arguments, "string")

                         ^----------

Current dir: /home/tf/OpenHarmony-4.0-release/out/rk3568/

Command: /usr/bin/env /home/tf/OpenHarmony-4.0-release/build/templates/common/external_deps_handler.py --external-deps ability_runtime:ability_manager c_utils:utils graphic_2d:librender_service_client hilog:libhilog ipc:ipc_single screenlock_mgr:screenlock_server --parts-src-flag-file build_configs/parts_src_flag.json --external-deps-temp-file gen/foundation/window/window_manager/window_scene/session_manager_service/window_manager__session_manager_service_external_deps_temp.json --sdk-base-dir ../../sdk/ohos-arm --sdk-dir-name sdk/ohos-arm --current-toolchain //build/toolchain/ohos:ohos_clang_arm --innerkits-adapter-info-file ../../build/ohos/inner_kits_adapter.json --component-override-map /home/tf/OpenHarmony-4.0-release/out/rk3568/build_configs/component_override_map.json

Returned 1 and printed out:

 

file '../../sdk/ohos-arm/screenlock_mgr/sdk_info.json' doesn't exist.

 

stderr:

 

Traceback (most recent call last):

  File "/home/tf/OpenHarmony-4.0-release/build/templates/common/external_deps_handler.py", line 259, in <module>

    sys.exit(main())

  File "/home/tf/OpenHarmony-4.0-release/build/templates/common/external_deps_handler.py", line 225, in main

    sdk_module_info, adapted_ok = _get_external_module_from_sdk(

  File "/home/tf/OpenHarmony-4.0-release/build/templates/common/external_deps_handler.py", line 74, in _get_external_module_from_sdk

    raise Exception("part '{}' doesn't exist in sdk modules.".format(

Exception: part 'screenlock_mgr' doesn't exist in sdk modules.

 

See //foundation/window/window_manager/window_scene/session_manager_service/BUILD.gn:24:1: whence it was called.

ohos_shared_library("session_manager_service") {

 

Logo

社区规范:仅讨论OpenHarmony相关问题。

更多推荐