OpenHarmony开发者论坛

标题: TypeError: _a2.getStatusbarHeight is not a function [打印本页]

作者: 吓得我瓜子都掉了    时间: 2025-3-21 15:32
标题: TypeError: _a2.getStatusbarHeight is not a function
[md]### 【问题描述】

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环境
[/md]
作者: hyacinth养花人    时间: 2025-3-25 10:00
_a2.xxx看起来开启了代码混淆
1. 麻烦确认一下release构建模式和debug构建模式都会报错么?
2. 如果仅release构建模式报错,可以尝试下把报错的库,在混淆规则配置文件obfuscation-rules.txt中添加相应的排除规则
https://docs.openharmony.cn/page ... n.md#-keep-filepath




欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) Powered by Discuz! X3.5