讨论广场 问答详情
5.0R版本用不了pad_launcher
无风之翼 2025-02-18 17:13:20
242 评论 分享

使用5.0Release版本,启动后使用的phone_launcher, 之前4.0的时候,把编译出来的pad_launcher 怼进去是可以直接使用的,但是目前编译的5.0版本,直接弄进去启动不了,一直报:

Error message:Cannot find module 'com.ohos.launcher/phone_launcher/ets/Application/AbilityStage' , which is application Entry Point
E     [appspawn_cgroup.c:147]Open file fail /dev/pids/100/com.ohos.launcher/app_19872/cgroup.procs errno: 2

从错误日志来看是,像是启动的时候找不到phone_launcher,这个是在哪里配置的,为何4.0的没有这个问题呢?

242 评论 分享
写回答
全部评论(13)
1 楼

替换padlauncher后 把data清掉 重启

2025-02-18 17:40:44
2025-05-27 13:39:57
引用:“同问,解决了吗?我也遇到一样的问题。”
替换padlauncher后,还要替换launchersettings,然后把data清掉 重启
2025-05-27 13:39:57
2025-05-27 11:05:54
引用:“同样的问题,有解决了吗”
同问,解决了吗?我也遇到一样的问题。
2025-05-27 11:05:54
2025-03-25 17:08:03
引用:“# cd system/app/com.ohos.launcher/ # ls -la total 10752 drwxr-xr-x 2 root root 4096 2025-02-20 09:14 . drwxr-xr-x 54 root root 4096 2025-02-26 19:10 .. -rw-r--r-- 1 root root 4522815 2025-02-26 23:24 ”
同样的问题,有解决了吗
2025-03-25 17:08:03
2025-02-20 14:46:47
引用:“-rw-r--r-- 1 root root 6.1M 2025-02-25 19:52 Launcher.hap -rw-r--r-- 1 root root 586K 2025-02-15 12:10 Launcher_Settings.hap 这个时间对不上吧。”
# cd system/app/com.ohos.launcher/ # ls -la total 10752 drwxr-xr-x 2 root root 4096 2025-02-20 09:14 . drwxr-xr-x 54 root root 4096 2025-02-26 19:10 .. -rw-r--r-- 1 root root 4522815 2025-02-26 23:24 Launcher.hap -rw-r--r-- 1 root root 969461 2025-02-26 23:24 Launcher_Settings.hap 重新来了一遍,时间也一样了,还是起不来
2025-02-20 14:46:47
2025-02-20 14:10:57
引用:“Launcher_Settings.hap也换过了”
-rw-r--r-- 1 root root 6.1M 2025-02-25 19:52 Launcher.hap -rw-r--r-- 1 root root 586K 2025-02-15 12:10 Launcher_Settings.hap 这个时间对不上吧。
2025-02-20 14:10:57
2025-02-19 11:37:15
引用:“Launcher.hap和Launcher_Settings.hap都需要替换为pad版本的。”
Launcher_Settings.hap也换过了
2025-02-19 11:37:15
2025-02-19 11:31:22
引用:“# cd system/app/com.ohos.launcher/ # ls -lah total 6.7M drwxr-xr-x 2 root root 4.0K 2025-02-15 13:49 . drwxr-xr-x 53 root root 4.0K 2025-02-15 13:49 .. -rw-r--r-- 1 root root 6.1M 2025-02-25 19:52 Lau”
Launcher.hap和Launcher_Settings.hap都需要替换为pad版本的。
2025-02-19 11:31:22
2025-02-19 11:20:23
引用:“在system/app/com.ohos.launcher下ls -lh看下, hap导出来 ”
# cd system/app/com.ohos.launcher/ # ls -lah total 6.7M drwxr-xr-x 2 root root 4.0K 2025-02-15 13:49 . drwxr-xr-x 53 root root 4.0K 2025-02-15 13:49 .. -rw-r--r-- 1 root root 6.1M 2025-02-25 19:52 Launcher.hap -rw-r--r-- 1 root root 586K 2025-02-15 12:10 Launcher_Settings.hap
Launcher.zip
下载
2025-02-19 11:20:23
2025-02-19 10:23:48
引用:“完整的hilog”
在system/app/com.ohos.launcher下ls -lh看下, hap导出来
2025-02-19 10:23:48
2025-02-19 09:59:46
引用:“全一点的hilog日志。或者你编release版本的Laucher替换进去”
完整的hilog
hilog.zip
下载
2025-02-19 09:59:46
查看全部12条回复 
查看全部13条回答/评论