The current repo belongs to Paused status, and some functions are restricted. For details, please refer to the description of repo status
41 Star 300 Fork 40

鸿蒙突击队/flutter
Paused

mac环境flutter ability报错,进入flutter页面白屏不显示

Backlog
Opened this issue  
2025-01-14 16:36

Steps to reproduce

通过鸿蒙原生进入flutter页面时,在FlutterNapi.ets的init方法中,找不到flutter,如下图所示
同时该文件最上面的import flutter from 'libflutter.so';提示找不到libflutter.so文件

最后打印出来的错误日志如下

01-14 16:50:49.927   23718-23718   C03F00/MUSL-LDSO                com.duola...tomer_hm  E     Error loading header libimage_ndk.z.so, namespace default has no inherits, errno=2
01-14 16:50:49.927   23718-23718   C03F00/MUSL-LDSO                com.duola...tomer_hm  E     Error loading header libpixelmap_ndk.z.so, namespace default has no inherits, errno=2
01-14 16:50:49.929   23718-23718   C03F00/MUSL-LDSO                com.duola...tomer_hm  E     relocating failed: symbol not found. dso=/data/storage/el1/bundle/libs/arm64/libflutter.so s=OH_ArkUI_AccessibilityElementInfoSetEditable use_vna_hash=0 van_hash=0
01-14 16:50:49.929   23718-23718   C03F01/com.duo...tomer_hm/NAPI  com.duola...tomer_hm  E     [(native_module_manager.cpp:854)(LoadModuleLibrary)] First attempt: load app module failed. Error relocating /data/storage/el1/bundle/libs/arm64/libflutter.so: OH_ArkUI_AccessibilityElementInfoSetEditable: symbol not found
                                                                                               Second attempt: load module default/flutter failed. module path is empty
01-14 16:50:49.929   23718-23718   C03F01/com.duo...tomer_hm/NAPI  com.duola...tomer_hm  E     [(native_module_manager.cpp:917)(GetFileBuffer)]  is not existed.
01-14 16:50:49.929   23718-23718   C03F01/com.duo...tomer_hm/NAPI  com.duola...tomer_hm  E     [(native_module_manager.cpp:1016)(FindNativeModuleByDisk)] First attempt: load app module failed. Error relocating /data/storage/el1/bundle/libs/arm64/libflutter.so: OH_ArkUI_AccessibilityElementInfoSetEditable: symbol not found
                                                                                               Second attempt: load module default/flutter failed. module path is empty
                                                                                               try to load abc file from  failed

Actual results

flutter的值为undefine
macos版本信息

Logs

Logs

<!-- Paste your logs here -->

Flutter Doctor output

Doctor output

<!-- Paste your output here -->

Comments (3)

aprogram created任务 7 months ago
aprogram changed description 7 months ago
aprogram changed description 7 months ago
Expand operation logs

+1。相同的报错,使用的是 ohos-3.22.0 版本

@aprogram 需要升级鸿蒙系统版本到最新的。。OH_ArkUI_AccessibilityElementInfoSetEditable 这个 API 需要 鸿蒙 API 13

gengfei-geng_fei gengfei member
Reply chandarlee
7 months ago

嗯对的,现在不支持API 13以下了

Sign in to comment

Status
Assignees
Projects
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Duration (hours)
Planed to start   -   Planed to end
-
Top level
Priority
关联仓库
关联里程碑
关联分支
参与者(3)
chandarlee-chandarlee gengfei-geng_fei aprogram-aprogram
1
https://gitee.com/harmonycommando_flutter/flutter.git
git@gitee.com:harmonycommando_flutter/flutter.git
harmonycommando_flutter
flutter
flutter

Search