HarmonyOS 主模块引用其他share library ,运行点击按钮时报错Error message:Cannot read property add of undefined?

新创建了一个Shared Library是一个native模块,该模块里面有一个页面MainPage,并将该页面export,在主entry里面route到该MainPage页面,点击时报错Error message:Cannot read property add of undefined,如何引用其他module生产的so包才不会报错?

阅读 486