ohrn 4.1.0.300 版本在 IDE 4.1.3.500上的运行问题

引入并使用了RNAbility后,Run项目直接crash,报错信息如下

Reason:TypeError

Error name:TypeError

Error message:Cannot read property isDebugModeEnabled of undefined

SourceCode:

const { isDebugModeEnabled } = this.napiBridge.onInit(this.shouldCleanUpRNInstance__hack());

^

Stacktrace:

at onCreate (oh_modules/.ohpm/rnoh@dzy990+x+mu1rushpzkijdx2o+q=/oh_modules/rnoh/src/main/ets/RNOH/RNAbility.ts:58:5)

debug后发现 该文件头部引入的 import libRNOHApp from ‘librnoh_app.so’; 变量 libRNOHApp是undefined

但实际应用中有librnoh_app.so


HarmonyOS
2024-05-13 21:36:48
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
depengli

文件缺失,参考提供的指导文档验证删掉.cxx,build重新sync

分享
微博
QQ
微信
回复
2024-05-14 22:16:33
相关问题
如何在IDE运行c语言helloworld?
1732浏览 • 1回复 待解决
请问hap文件能直接在鸿蒙环境运行
10556浏览 • 2回复 待解决