HarmonyOS 鸿蒙Next模拟器无法运行工程
HarmonyOS 鸿蒙Next模拟器无法运行工程
错误日志
Device info:emulator
Build info:emulator 5.0.0.112(SP2DEVC00E112R6P1log)
Fingerprint:5166bcd3f8b6a247c1a08d5f093779bbc35f29b8cd45dcbafbb44406716549d4
Module name:com.example.myapplication
Version:1.0.0
Foreground:Yes
Pid:4743
Uid:20020043
Reason:WINDOW_EXCEPTION_DETECTION
syswarning: WINDOW_EXCEPTION_DETECTION WINDOW_EXCEPTION_DETECTION at 20241211145246
DisplayPowerInfo:powerState:UNKNOWN
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
DOMAIN:WINDOWMANAGER
STRINGID:WINDOW_EXCEPTION_DETECTION
TIMESTAMP:2024/12/11-14:52:46:693
PID:4743
UID:20020043
PACKAGE_NAME:
PROCESS_NAME:
*******************************************
start time: 2024/12/11-14:52:46:705
DOMAIN = WINDOWMANAGER
EVENTNAME = WINDOW_EXCEPTION_DETECTION
TIMESTAMP = 2024/12/11-14:52:46:693
PID = 4743
UID = 20020043
TID = 4743
PACKAGE_NAME =
PROCESS_NAME =
eventLog_action = cmd:w
eventLog_interval = 300
MSG = SetUIContent timeout uid: 20020043, windowName: myapplication0, bundleName: com.example.myapplication
catcher cmd: hidumper -s WindowManagerService -a -a
-------------------------------[ability]-------------------------------
----------------------------------WindowManagerService----------------------------------
-------------------------------------ScreenGroup 0-------------------------------------
WindowName DisplayId Pid WinId Type Mode Flag ZOrd Orientation [ x y w h ] [ OffsetX OffsetY ] [ ScaleX ScaleY PivotX PivotY ]
SCBScenePanel1 0 1755 7 2109 1 0 100 0 [ 0 0 2224 2496 ] [ 0 0 ] [ 1 1 0.5 0.5 ]
BackgroundBlurView2 0 1755 8 2109 1 0 101 0 [ 0 0 2224 2496 ] [ 0 0 ] [ 1 1 0.5 0.5 ]
SCBWallpaper3 0 1755 9 2000 1 0 1 0 [ 0 0 2224 2496 ] [ 0 0 ] [ 1 1 0.5 0.5 ]
SCBDesktop4 0 1755 11 2001 1 0 2 0 [ 0 0 2224 2496 ] [ 0 0 ] [ 1 1 0.5 0.5 ]
SCBGestureNavBar15 0 1755 22 2111 1 0 2200 0 [ 0 2359 2224 137 ] [ 0 0 ] [ 1 1 0.5 0.5 ]
SCBStatusBar16 0 1755 23 2108 1 0 2202 0 [ 0 0 2224 121 ] [ 0 0 ] [ 1 1 0.5 0.5 ]
SCBGestureBack20 0 1755 27 2111 1 0 4101 0 [ 0 0 2224 2496 ] [ 0 0 ] [ 1 1 0.5 0.5 ]
SCBFormCenter24 0 1755 31 2135 1 0 2002 0 [ 0 0 2224 2496 ] [ 0 0 ] [ 1 1 0.5 0.5 ]
myapplication0 0 4743 32 1 1 0 102 0 [ 0 0 2224 2496 ] [ 0 0 ] [ 1 1 0.5 0.5 ]
---------------------------------------------------------------------------------------
SCBKeyboardPanel 0 1755 4 2134 1 0 -1 0 [ 0 0 0 0 ] [ 0 0 ] [ 1 1 0 0 ]
SCBNegativeScreen5 0 1755 12 2126 1 0 -1 0 [ 0 0 2224 2496 ] [ 0 0 ] [ 1 1 0 0 ]
SCBGlobalSearch6 0 1755 13 2125 1 0 -1 0 [ 0 0 2224 2496 ] [ 0 0 ] [ 1 1 0 0 ]
GuidanceDialogScene7 0 1755 14 2109 1 0 -1 0 [ 0 0 2224 2496 ] [ 0 0 ] [ 1 1 0 0 ]
SCBBannerNotificatio 0 1755 15 2106 1 0 -1 0 [ 0 0 2224 2496 ] [ 0 0 ] [ 1 1 0 0 ]
BannerOrLiveManager9 0 1755 16 2109 1 0 -1 0 [ 0 0 0 0 ] [ 0 0 ] [ 1 1 0 0 ]
SCBGestureTopBar10 0 1755 17 2111 1 0 -1 0 [ 0 0 2224 121 ] [ 0 0 ] [ 1 1 0 0 ]
SCBSysDialogDefault1 0 1755 18 2104 1 0 -1 0 [ 0 0 2224 2496 ] [ 0 0 ] [ 1 1 0 0 ]
SCBScreenLockBouncer 0 1755 19 2110 1 0 -1 0 [ 0 0 2224 2496 ] [ 0 0 ] [ 1 1 0 0 ]
SCBScreenLock13 0 1755 20 2110 1 0 -1 0 [ 0 0 2224 2496 ] [ 0 0 ] [ 1 1 0.5 0.5 ]
SCBSystemTopPanel14 0 1755 21 2111 1 0 -1 0 [ 0 0 2224 2496 ] [ 0 0 ] [ 1 1 0 0 ]
SCBDropdownPanel17 0 1755 24 2109 1 0 -1 0 [ 0 0 2224 2496 ] [ 0 0 ] [ 1 1 0 0 ]
SCBSysDialogUpper18 0 1755 25 2111 1 0 -1 0 [ 0 0 2224 2496 ] [ 0 0 ] [ 1 1 0 0 ]
SCBVolumePanel19 0 1755 26 2111 1 0 -1 0 [ 0 0 2224 2496 ] [ 0 0 ] [ 1 1 0 0 ]
SCBSpacedGesture21 0 1755 28 2135 1 0 -1 0 [ 0 0 2224 2496 ] [ 0 0 ] [ 1 1 0 0 ]
SCBSideEdgeBar22 0 1755 29 2135 1 0 -1 0 [ 0 0 2224 2496 ] [ 0 0 ] [ 1 1 0 0 ]
SCBPrivacyIndicator2 0 1755 30 2127 1 0 -1 0 [ 0 0 2224 2496 ] [ 0 0 ] [ 1 1 0 0 ]
Focus window: 32
Total window num: 29
Catcher log total time is 16ms
中是否对所加载的页面做了配置,没配置就使用也会报这个错
针对HarmonyOS鸿蒙Next模拟器无法运行工程的问题,以下是一些可能的解决方案:
- 检查设备识别:确保模拟器已被DevEco Studio正确识别。可以在IDE的设备管理器中查看,确认模拟器状态正常。
- 修改配置文件:在工程级的build-profile.json5文件中,检查runtimeOS字段是否已修改为HarmonyOS。
- 更新软件环境:确保DevEco Studio和HarmonyOS SDK已更新至最新版本,包括所有相关插件。点击“帮助-检查更新”以进行确认。
- 重置模拟器:在设备管理器中尝试删除无法运行的模拟器实例,并重新创建一个新的实例。
- 清理缓存:清理DevEco Studio的缓存和临时文件,有时可以解决启动问题。
- 检查模拟器配置:确保模拟器配置完整,包括系统镜像、内存分配等,以满足工程运行需求。
如果以上步骤均无法解决问题,可能是由于特定环境或配置导致的兼容性问题。此时,您可以联系官网客服以获取更专业的技术支持。在联系客服时,请提供详细的错误信息和操作步骤,以便快速定位并解决问题。官网地址是:https://www.itying.com/category-93-b0.html。