积分0 / 贡献0

提问1答案被采纳0文章0

作者动态

    TypeError: _a2.getStatusbarHeight is not a function

    吓得我瓜子都掉了 显示全部楼层 发表于 2025-3-21 15:32:24

    【问题描述】

    15:29:09.049 TypeError: _a2.getStatusbarHeight is not a function 15:29:09.049 at uniGetFringeHeight (app-service.js:3534:95) 15:29:09.050 at setAppSafeFringeH (app-service.js:4522:22) 15:29:09.050 at app-service.js:170486:9 15:29:09.050 at callWithErrorHandling (http://localhost/file6.js:3075:21) 15:29:09.050 at callWithAsyncErrorHandling (http://localhost/file6.js:3082:17) 15:29:09.050 at Array.<anonymous> (http://localhost/file6.js:5559:19) 15:29:09.050 at invokeArrayFns2 (http://localhost/file6.js:625:19) 15:29:09.050 at invokeHook (http://localhost/file6.js:16265:21) 15:29:09.050 at initAppLaunch (http://localhost/file6.js:21317:5) 15:29:09.050 at Object.registerApp [as __registerApp] (http://localhost/file6.js:21375:5)

    【运行环境】

    uniapp环境

    您尚未登录,无法参与评论,登录后可以:
    参与开源共建问题交流
    认同或收藏高质量问答
    获取积分成为开源共建先驱

    精彩评论1

    hyacinth养花人

    沙发 发表于 2025-3-25 10:00:01
    _a2.xxx看起来开启了代码混淆
    1. 麻烦确认一下release构建模式和debug构建模式都会报错么?
    2. 如果仅release构建模式报错,可以尝试下把报错的库,在混淆规则配置文件obfuscation-rules.txt中添加相应的排除规则
    https://docs.openharmony.cn/page ... n.md#-keep-filepath

    Copyright   ©2025  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

    返回顶部