运行报错 ErrorCode: 00401004

下载了一个demo,一运行就报错: 


ErrorCode: 00401004
ErrorDescription: Please try to match the API version of the device and the app. The current device does not contain the following SysCap attributes in the rpcid.json file: SystemCapability.ArkUi.Graphics3D. Make sure the device supports all the SysCap attributes required for running the app.

运行报错 ErrorCode: 00401004-鸿蒙开发者社区cke_228.png

HarmonyOS
2025-10-09 10:55:35
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
hm688c71fc5437c

开发者您好,可尝试在hap模块的​​src/main​​​目录下新建​​syscap.json​​文件,移除错误提示中不支持的SysCap特性,以上述报错为例:

// entry/src/main/syscap.json

{
  "devices": {
    "general": ["default"]  // 同module.json5中的deviceTypes
  },
  "production": {
    "removedSysCaps": [
      "SystemCapability.ArkUi.Graphics3Dh",
    ]
  }
}
分享
微博
QQ
微信
回复
2025-10-15 10:51:38
相关问题
HarmonyOS 运行HmosWorld时报错
1518浏览 • 1回复 待解决
@ohos/smartrefreshlayout运行报错
928浏览 • 0回复 待解决
HarmonyOS IDE运行报错
1055浏览 • 1回复 待解决
@ohos/smartrefreshlayout运行报错
1385浏览 • 1回复 待解决
HarmonyOS 创建Flutter demo运行报错
1620浏览 • 1回复 待解决
HarmonyOS 运行报错,内存不足
1960浏览 • 1回复 待解决
HarmonyOS NDK 运行编译报错
1874浏览 • 1回复 待解决
HarmonyOS 集成RN 5.0.0.100 后运行报错
1493浏览 • 1回复 待解决
HarmonyOS asset运行add方法时报错
1659浏览 • 1回复 待解决
HarmonyOS 视频编码surface模式运行报错
1298浏览 • 1回复 待解决
测试脚本运行时安装app报错
1779浏览 • 1回复 待解决
HarmonyOS 真机运行报错如何解决
1867浏览 • 1回复 待解决
HarmonyOS 使用发布证书运行报错9568322
1258浏览 • 1回复 待解决
离线集成har,运行报错code:9568305
2684浏览 • 1回复 待解决
HarmonyOS 升级新版本flutter运行报错
1662浏览 • 1回复 待解决
HarmonyOS 终端运行ohpm一直报错
1455浏览 • 1回复 待解决