HarmonyOS 分享组件无法正常使用,闪退?

崩溃日志:

Module name:com.example.cameranext

Version:1.0.0

VersionCode:1000000

PreInstalled:No

Foreground:No

Pid:29757

Uid:20020038

Reason:TypeError

Error name:TypeError

Error message:Cannot read property SharedData of undefined

SourceCode:

let data: systemShare.SharedData = new systemShare.SharedData({

^

Stacktrace:

at anonymous (features/home/src/main/ets/view/Home.ets:79:52)

阅读 544
1 个回答

不支持模拟器,建议使用真机测试,确保样机版本与ide版本是配套的