1***@163.com
1***@163.com
  • 发布:2025-05-27 12:12
  • 更新:2025-05-27 14:04
  • 阅读:27

【报Bug】鸿蒙真机运行一直卡在开屏页,也不报错

分类:鸿蒙Next

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: m2

HBuilderX类型: 正式

HBuilderX版本号: 4.65

手机系统: HarmonyOS NEXT

手机系统版本号: HarmonyOS 5.0.1

手机厂商: 华为

手机机型: nova13

页面类型: vue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

{
"module": {
"name": "entry",
"type": "entry",
"description": "$string:module_desc",
"mainElement": "EntryAbility",
"deviceTypes": [
"phone"
],
"deliveryWithInstall": true,
"installationFree": false,
"pages": "$profile:main_pages",
"virtualMachine": "ark",
"abilities": [
{
"name": "EntryAbility",
"srcEntry": "",
"startWindowIcon": "$media:startIcon",
"startWindowBackground": "$color:start_window_background",
"exported": true,
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"ohos.want.action.home"
]
}
]
}
],
"requestPermissions": [
{
"name": "ohos.permission.MICROPHONE",
"reason": "$string:get_camera_tips",
"usedScene": {
"abilities": [
"FormAbility"
],
"when":"inuse"
}
}
]
},
// "targetModuleName": "feature",
// "targetPriority": 50,
// "isolationMode": "nonisolationFirst"
}

操作步骤:

正常操作

预期结果:

成功进入开屏页

实际结果:

一直卡在开屏页

bug描述:

在配置完module.json5后真机运行,就一直卡在开屏页,就没反应了,我去看了鸿蒙文档module.json5里面也没有找到关于开屏页的配置,还是module.json5里配置有错误?我把module.json5代码放下面

2025-05-27 12:12 负责人:无 分享
已邀请:
1***@163.com

1***@163.com (作者)

有人知道怎么回事嘛?把module.json5里的配置都注了一遍,没找到那个配置不对

要回复问题请先登录注册