HarmonyOS 鸿蒙Next 真机测试程序进入不了主页
HarmonyOS 鸿蒙Next 真机测试程序进入不了主页 开发板使用OpenHarmony3.2 ,DevEco_3.1.0.500 ,full-SDK_3.2.13.5 ,大佬有遇到过的吗?打开就在图标界面,进不去主页面,日志报错Failed to get AbilityStage object 怎么解决。
日志:
08-05 17:52:38.830 5470-5470/? E C02c11/APPSPAWN: [sandbox_utils.cpp:197]bind mount /system/asan/lib to /mnt/sandbox/com.example.myapplication/system/asan/lib failed 2, just DE
08-05 17:52:38.830 5470-5470/? E C02c11/APPSPAWN: [json_utils.cpp:49]Find key[check-action-status] successful.
08-05 17:52:38.831 5470-5470/? E C02c11/APPSPAWN: [sandbox_utils.cpp:197]bind mount /system/asan/lib64 to /mnt/sandbox/com.example.myapplication/system/asan/lib64 failed 2, jus
08-05 17:52:38.832 5470-5470/? E C02c11/APPSPAWN: [json_utils.cpp:49]Find key[check-action-status] successful.
08-05 17:52:38.832 5470-5470/? E C02c11/APPSPAWN: [sandbox_utils.cpp:197]bind mount /system/data to /mnt/sandbox/com.example.myapplication/system/data failed 2, just DEBUG MESS
08-05 17:52:38.832 5470-5470/? E C02c11/APPSPAWN: [json_utils.cpp:49]Find key[check-action-status] successful.
08-05 17:52:38.834 5470-5470/? E C02c11/APPSPAWN: [sandbox_utils.cpp:197]bind mount /vendor/asan/lib64 to /mnt/sandbox/com.example.myapplication/vendor/asan/lib64 failed 2, jus
08-05 17:52:38.834 5470-5470/? E C02c11/APPSPAWN: [json_utils.cpp:49]Find key[check-action-status] successful.
08-05 17:52:38.839 5470-5470/? E C02c11/APPSPAWN: [sandbox_utils.cpp:197]bind mount /data/local/ark-cache/com.example.myapplication to /mnt/sandbox/com.example.myapplication/da
08-05 17:52:38.840 5470-5470/? E C02c11/APPSPAWN: [json_utils.cpp:49]Find key[check-action-status] successful.
08-05 17:52:38.842 5470-5470/? E C02c11/APPSPAWN: [sandbox_utils.cpp:197]bind mount /data/app/el1/bundle/public/ohos.global.systemres.overlay to /mnt/sandbox/com.example.myappl
08-05 17:52:38.842 5470-5470/? E C02c11/APPSPAWN: [json_utils.cpp:49]Find key[check-action-status] successful.
08-05 17:52:39.081 5470-5470/? E C01200/EventRunner: Run: Do not call, if event runner is deposited
08-05 17:52:39.107 5470-5470/? E C01300/Appkit: [js_ability_stage.cpp(Init:133)]AbilityStageObj is nullptr
08-05 17:52:39.111 5470-5470/? E C01300/Runtime: [js_runtime.cpp(LoadModule:670)]Failed to make module file path: /data/storage/el1/bundle/entry/ets/entryability/EntryAbility.abc
08-05 17:52:39.114 5470-5470/? E C03f00/ArkCompiler: [ecmascript] Unable to open file '11259659813709046631' with bytecode version 9.0.0.0
08-05 17:52:39.114 5470-5470/? E C03f00/ArkCompiler: [ecmascript] Maximum supported version is 0.0.0.3
08-05 17:52:39.114 5470-5470/? E C03f00/ArkCompiler: [ecmascript] open file /data/storage/el1/bundle/entry/ets/modules.abc error
08-05 17:52:39.114 5470-5470/? E C03f00/ArkCompiler: [ecmascript] Cannot execute module buffer file '/data/storage/el1/bundle/entry/ets/entryability/EntryAbility.abc
08-05 17:52:39.115 5470-5470/? E C03f00/ArkCompiler: [ecmascript] Unable to open file '/data/storage/el1/bundle/entry/ets/modules.abc' with bytecode version 9.0.0.0
08-05 17:52:39.115 5470-5470/? E C03f00/ArkCompiler: [ecmascript] Maximum supported version is 0.0.0.3
08-05 17:52:39.115 5470-5470/? E C03f00/ArkCompiler: [ecmascript] open file /data/storage/el1/bundle/entry/ets/modules.abc error
08-05 17:52:39.115 5470-5470/? E C01300/Runtime: [js_runtime.cpp(LoadJsModule:188)]Get export object failed
08-05 17:52:39.116 5470-5470/? E C01300/Ability: [js_ability.cpp(Init:140)]Failed to get AbilityStage object
08-05 17:52:39.129 5470-5470/? E C01300/Ability: [ability.cpp(HandleCreateAsRecovery:1029)]AppRecovery not recovery restart
08-05 17:52:39.129 5470-5470/? E C01300/Ability: [ability.cpp(InitWindow:1636)]Ability::InitWindow abilityWindow_ is nullptr
08-05 17:52:39.158 5470-5470/? E C01300/Ability: [ability_impl.cpp(CheckAndRestore:415)]AbilityImpl::CheckAndRestore hasSaveData_ is false
08-05 17:52:39.176 5470-5470/? E C01300/Ability: [ability.cpp(ShouldRecoverState:394)]AppRecovery Not enable
08-05 17:52:39.180 5470-5470/? E C01300/Appkit: [application_context.cpp(DispatchOnWindowStageCreate:110)]ability or windowStage is nullptr
08-05 17:52:39.185 5470-5470/? E C01300/Ability: [js_ability.cpp(OnForeground:388)]Failed to get AbilityStage object
更多关于HarmonyOS 鸿蒙Next 真机测试程序进入不了主页的实战教程也可以访问 https://www.itying.com/category-93-b0.html
2 回复
解析文件失败。
请检查文件内容是否正确,然后清除缓存后,重新编译打包。
更多关于HarmonyOS 鸿蒙Next 真机测试程序进入不了主页的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
HarmonyOS鸿蒙Next真机测试程序无法进入主页,可能涉及以下原因:
- 应用配置问题:
config.json
中的mainAbility
或launchType
配置错误,导致无法正确加载主页。 - 页面跳转逻辑错误:主页跳转逻辑未正确实现,或跳转路径配置有误。
- 资源加载失败:主页所需的资源文件未正确加载或丢失。
- 权限问题:应用未获取必要权限,导致功能受限。
- 系统兼容性:应用与当前鸿蒙系统版本不兼容。
- 真机调试环境问题:真机调试环境未正确配置,或设备存在兼容性问题。
检查以上内容,确保配置、逻辑和资源正确无误。