HarmonyOS 鸿蒙Next DevEcoStudio打开远程模拟器后启动不了项目
HarmonyOS 鸿蒙Next DevEcoStudio打开远程模拟器后启动不了项目 本人huawei matebooks13s i5,使用DevEcoStudio创建了一个helloworld可以通过预览器成功启动和更新,但是使用远程模拟器报如下错误,网上找不到相关解决方案,也没有什么思路,恳请各路网络大牛帮忙分析一下,感激不尽!!
报错如下:
12-21 00:08:32.850 1092-1501/? E AudioSystem/-JNI: AudioSystem::listAudioPorts error -19
12-21 00:08:32.850 1092-1501/? W AudioManager/: updateAudioPortCache: listAudioPorts failed
12-21 00:08:32.850 6855-6855/? D HiTraceC/: entered HiTraceInit, Log Registered: 1
12-21 00:08:32.850 1511-3901/? E AudioSystem/-JNI: AudioSystem::listAudioPorts error -19
12-21 00:08:32.850 1511-3901/? W AudioManager/: updateAudioPortCache: listAudioPorts failed
12-21 00:08:32.853 1511-3901/? E AudioSystem/-JNI: AudioSystem::listAudioPorts error -19
12-21 00:08:32.853 1511-3901/? W AudioManager/: updateAudioPortCache: listAudioPorts failed
12-21 00:08:32.853 6193-6193/? I 00501/HwParentControl: KillSelfLogic - contentResolver:true,resultChild:-1,resultParent:-1
12-21 00:08:32.854 6193-6193/? E 00501/HwParentControl: KillSelfLogic - Settings getSwitchStatus SettingNotFoundException
12-21 00:08:32.855 6193-6193/? I 00501/HwParentControl: CommonUtils - getTopTaskApkName ->> top app name = com.huawei.android.launcher
12-21 00:08:32.855 6193-6193/? I 00501/HwParentControl: CommonUtils - isParentControlUIPresent ->> Top activity is: com.huawei.android.launcher
12-21 00:08:32.856 6193-6193/? W 00501/HwParentControl: KillSelfLogic - has activity or process is alive!
12-21 00:08:32.902 792-792/? I containerd/: new connection
12-21 00:08:32.902 792-792/? I containerd/: Containerd MakeCmd. argv[0]: ohsh!
12-21 00:08:32.902 792-792/? I containerd/: Containerd MakeCmd. argv[1]: hidumper!
12-21 00:08:32.902 792-792/? I containerd/: Containerd MakeCmd. argv[2]: -s!
12-21 00:08:32.902 792-792/? I containerd/: Containerd MakeCmd. argv[3]: 11201!
12-21 00:08:32.902 792-792/? I containerd/: Containerd MakeCmd. argv[4]: -a!
12-21 00:08:32.902 792-792/? I containerd/: Containerd MakeCmd. argv[5]: -p Faultlogger!
12-21 00:08:32.902 792-792/? I containerd/: [OHSH]do shell in
12-21 00:08:32.903 792-792/? E containerd/: [OHSH]stdout dup2
12-21 00:08:32.903 792-792/? E containerd/: [OHSH]stdout dup2
12-21 00:08:32.904 792-792/? E containerd/: eof
12-21 00:08:32.904 792-792/? E containerd/: failed to read size
12-21 00:08:32.904 792-792/? I containerd/: closing connection
12-21 00:08:32.904 6866-6866/? I containerd/: EnterNss NameSpaceInfo.
12-21 00:08:32.906 6872-628/? I containerd/: [OHSH]RunCommand begin
12-21 00:08:32.908 6872-628/? I containerd/: [ohsh]GetZygotePid PID 3!
12-21 00:08:32.910 6872-6872/? I hidumper/: type=1400 audit(0.0:76225): avc: denied { read } for path=“user:[4026532590]” dev=“nsfs” ino=4026532590 scontext=u:r:ohco_hidumper:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
12-21 00:08:32.910 6872-6872/? I hidumper/: type=1400 audit(0.0:76226): avc: denied { read } for path="/proc/1/status" dev=“proc” ino=191213 scontext=u:r:ohco_hidumper:s0 tcontext=u:r:ohco_init:s0 tclass=file permissive=1
12-21 00:08:32.910 6872-6872/? I hidumper/: type=1400 audit(0.0:76227): avc: denied { read } for path="/proc/2/status" dev=“proc” ino=191214 scontext=u:r:ohco_hidumper:s0 tcontext=u:r:ohco_param_watcher:s0 tclass=file permissive=1
12-21 00:08:32.916 810-810/? E selinux_dmd/: type=1400 audit(0.0:76225): avc: denied { read } for comm=“hidumper” path=“user:[4026532590]” dev=“nsfs” ino=4026532590 scontext=u:r:ohco_hidumper:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1 find pid= failed
12-21 00:08:32.916 810-810/? E selinux_dmd/: type=1400 audit(0.0:76225): avc: denied { read } for comm=“hidumper” path=“user:[4026532590]” dev=“nsfs” ino=4026532590 scontext=u:r:ohco_hidumper:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1 ExtractKeys failed
12-21 00:08:32.916 810-810/? E selinux_dmd/: type=1400 audit(0.0:76226): avc: denied { read } for comm=“hidumper” path="/proc/1/status" dev=“proc” ino=191213 scontext=u:r:ohco_hidumper:s0 tcontext=u:r:ohco_init:s0 tclass=file permissive=1 find pid= failed
12-21 00:08:32.916 810-810/? E selinux_dmd/: type=1400 audit(0.0:76226): avc: denied { read } for comm=“hidumper” path="/proc/1/status" dev=“proc” ino=191213 scontext=u:r:ohco_hidumper:s0 tcontext=u:r:ohco_init:s0 tclass=file permissive=1 ExtractKeys failed
12-21 00:08:32.917 810-810/? E selinux_dmd/: type=1400 audit(0.0:76227): avc: denied { read } for comm=“hidumper” path="/proc/2/status" dev=“proc” ino=191214 scontext=u:r:ohco_hidumper:s0 tcontext=u:r:ohco_param_watcher:s0 tclass=file permissive=1 find pid= failed
12-21 00:08:32.917 810-810/? E selinux_dmd/: type=1400 audit(0.0:76227): avc: denied { read } for comm=“hidumper” path="/proc/2/status" dev=“proc” ino=191214 scontext=u:r:ohco_hidumper:s0 tcontext=u:r:ohco_param_watcher:s0 tclass=file permissive=1 ExtractKeys failed
12-21 00:08:32.930 6873-6873/? I sh/ : type=1400 audit(0.0:76228): avc: denied { search } for name="/" dev=“dm-4” ino=2 scontext=u:r:shell:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
12-21 00:08:32.930 6873-6873/? I sh/ : type=1400 audit(0.0:76229): avc: denied { getattr } for path="/odm/lib64" dev=“dm-4” ino=1400 scontext=u:r:shell:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
12-21 00:08:32.936 810-810/? E selinux_dmd/: type=1400 audit(0.0:76228): avc: denied { search } for comm=“sh” name="/" dev=“dm-4” ino=2 scontext=u:r:shell:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 find pid= failed
12-21 00:08:32.936 810-810/? E selinux_dmd/: type=1400 audit(0.0:76228): avc: denied { search } for comm=“sh” name="/" dev=“dm-4” ino=2 scontext=u:r:shell:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 ExtractKeys failed
12-21 00:08:32.936 810-810/? E selinux_dmd/: type=1400 audit(0.0:76229): avc: denied { getattr } for comm=“sh” path="/odm/lib64" dev=“dm-4” ino=1400 scontext=u:r:shell:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 find pid= failed
12-21 00:08:32.936 810-810/? E selinux_dmd/: type=1400 audit(0.0:76229): avc: denied { getattr } for comm=“sh” path="/odm/lib64" dev=“dm-4” ino=1400 scontext=u:r:shell:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 ExtractKeys failed
12-21 00:08:32.948 6872-628/? E libc/ : hidumper: Unable to open shared library libmemleak_tracker.so: dlopen failed: library “libmemleak_tracker.so” not found
12-21 00:08:32.951 1092-1501/? E AudioSystem/-JNI: AudioSystem::listAudioPorts error -19
12-21 00:08:32.951 1511-3901/? E AudioSystem/-JNI: AudioSystem::listAudioPorts error -19
更多关于HarmonyOS 鸿蒙Next DevEcoStudio打开远程模拟器后启动不了项目的实战教程也可以访问 https://www.itying.com/category-93-b0.html
更多关于HarmonyOS 鸿蒙Next DevEcoStudio打开远程模拟器后启动不了项目的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
在HarmonyOS开发中,使用DevEco Studio打开远程模拟器后无法启动项目,可能的原因包括:
- 网络连接问题:远程模拟器依赖稳定的网络连接,网络波动或配置错误可能导致连接失败。
- 端口冲突:远程模拟器使用的端口可能被其他应用程序占用,导致无法启动。
- 模拟器配置错误:模拟器的CPU或内存配置不足,或镜像文件损坏,可能导致启动失败。
- DevEco Studio版本问题:DevEco Studio版本过旧或与鸿蒙Next SDK不兼容,可能导致无法启动项目。
- 权限问题:模拟器启动需要特定权限,权限不足可能导致启动失败。
- 项目配置错误:项目配置文件(如
config.json
)中的参数设置错误,可能影响模拟器启动。
解决这些问题通常需要检查网络配置、端口使用情况、模拟器设置、DevEco Studio版本、权限配置以及项目配置文件。