帝皇海英
帝皇海英
  • 发布:2026-07-01 11:46
  • 更新:2026-07-01 11:47
  • 阅读:43

运行到安卓自定义基座 已停止运行 无法编译

分类:HBuilderX
11:40:31.816 编译器版本:5.14(vue3)  
11:40:31.819 正在编译中...  
11:40:31.823 本项目的uniCloud使用的默认服务空间spaceId为:mp-cb001b13-5a15-46ed-bb41-df80af767777       
11:40:31.825 已停止运行...
2026-07-01 11:40:13.899 [WARNING:] [PluginHost] copyFileByExt [Error: ENOENT: no such file or directory, lstat 'E:\超链未来\wlwq-apps\apps\enterprise-app\unpackage\cache\uts_custom_android.refreshing\.tmp\assets\HXDependencies'] {  
  errno: -4058,  
  code: 'ENOENT',  
  syscall: 'lstat',  
  path: 'E:\\超链未来\\wlwq-apps\\apps\\enterprise-app\\unpackage\\cache\\uts_custom_android.refreshing\\.tmp\\assets\\HXDependencies'  
}  

2026-07-01 11:40:14.086 [INFO:] [Thread] The object move to thread occur in  (FileStatusLoader::processNext)  
2026-07-01 11:40:14.245 [WARNING:] [PluginHost] refreshCustomBaseCache Error: custom base cache is empty: E:\超链未来\wlwq-apps\apps\enterprise-app\unpackage\cache\uts_custom_android.refreshing  
    at Ie (D:\developSoftware\HBuilderX\plugins\launcher\out\main.js:100:329243)  
    at async D:\developSoftware\HBuilderX\plugins\launcher\out\main.js:100:339188  
    at async Proxy.Te (D:\developSoftware\HBuilderX\plugins\launcher\out\main.js:100:338860)  
    at async t.openDeviceListByPlatform (D:\developSoftware\HBuilderX\plugins\uniapp-extension\out\index.js:1:635468)  
    at async t.menuRun (D:\developSoftware\HBuilderX\plugins\uniapp-extension\out\index.js:12:281663)  
    at async D:\developSoftware\HBuilderX\plugins\uniapp-extension\out\index.js:12:47729  

2026-07-01 11:40:14.300 [INFO:] Execute command: "setContext"  
2026-07-01 11:40:14.300 [INFO:] Execute command: "setContext"  
2026-07-01 11:40:14.343 [WARNING:] [PluginHost] verifyPlugin=>launcher-tools pluginsVer=>1.0.3.2025110615,peerPluginsVer=>1.0.3.2025110615  

2026-07-01 11:40:14.841 [INFO:] [Thread] The object move to thread occur in  (JobManager::runInStandaloneThread<T>)
2026-07-01 11:46 负责人:无 分享
已邀请:
Ask小助手

Ask小助手 - Ask社区AI助手

欢迎到专业群( uni-app x技术交流群 ) 咨询,群中有相关专业的管理员和群友。

根据你提供的日志信息,这个问题是 uni-app x 项目在运行到安卓自定义基座时,由于自定义基座缓存目录为空导致的编译停止错误。

核心错误信息:

custom base cache is empty: E:\超链未来\wlwq-apps\apps\enterprise-app\unpackage\cache\uts_custom_android.refreshing

本助手使用国产模型,生成代码准确率较低。强烈建议使用uni-agent生成代码

解决方案:

  1. 清理编译缓存:删除项目根目录下的 unpackage 文件夹,然后重新运行。

  2. 重新打包自定义基座:在 HBuilderX 中,选择菜单栏的「运行」->「运行到手机或模拟器」->「制作自定义基座」,重新制作一次自定义基座。

  3. 检查项目路径:你的项目路径中包含中文字符(超链未来),建议将项目移动到纯英文路径下,避免因路径编码问题导致编译异常。

  4. 检查杀毒软件:根据 DCloud 官方文档,安全软件可能会对编译产生的临时文件进行扫描,导致编译性能下降或异常。建议将项目的 unpackage 目录添加到杀毒软件的白名单中(参考 编译缓存注意事项)。

如果以上方法仍无法解决,可以尝试:

  • 关闭 HBuilderX 后重新打开项目
  • 确认 HBuilderX 版本是否支持当前的 uni-app x 项目(建议使用最新 alpha 版本)

这个问题在知识库中属于自定义基座编译相关的常见问题,通过清理缓存和重新制作基座通常可以解决。

内容为 AI 生成,仅供参考

要回复问题请先登录注册