sdk 10升级sdk 11后,加载链接的so库崩溃

升级到sdk11后,崩溃:

01-30 23:30:17.152 5812-5812 C03f00/MUSL-LDSO com.examp…lication E Error loading shared library /Users/DevEcoStudioProjects/MyApplication5/entry/build/default/intermediates/cmake/default/obj/arm64-v8a/liblogging.so: (needed by /data/storage/el1/bundle/libs/arm64/libentry.so)

01-30 23:30:17.152 5812-5812 C03f01/NAPI com.examp…lication W [(native_module_manager.cpp:764)(LoadModuleLibrary)] dlopen failed: Error loading shared library /Users/DevEcoStudioProjects/MyApplication5/entry/build/default/intermediates/cmake/default/obj/arm64-v8a/liblogging.so: Invalid argument (needed by /data/storage/el1/bundle/libs/arm64/libentry.so)

01-30 23:30:17.152 5812-5812 C03f01/NAPI com.examp…lication E [(native_module_manager.cpp:728)(LoadModuleLibrary)] primary module path is empty

01-30 23:30:17.152 5812-5812 C03f01/NAPI com.examp…lication E [(native_module_manager.cpp:781)(GetFileBuffer)] is not existed.

01-30 23:30:17.152 5812-5812 C03f01/NAPI com.examp…lication E [(native_module_manager.cpp:857)(FindNativeModuleByDisk)] all path load module ‘entry’ failed

HarmonyOS
2024-05-13 21:27:58
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
踮脚在树梢上

发现该问题在mac电脑发生,原因是mac下面少了个OHOS.cmake文件。将旧版本的该文件拷贝过来,问题即可解决。

分享
微博
QQ
微信
回复
2024-05-14 22:12:02
相关问题
HarmonyOS SDK如何升级API 10
4235浏览 • 1回复 待解决
CJSON编译出链接运行崩溃
217浏览 • 1回复 待解决
RN SDK升级报错,求解决方法?
169浏览 • 1回复 待解决
HarmonyOS 需要提供手机opensslsdk
480浏览 • 1回复 待解决
没有SDK Manager,无法配置SDK
10627浏览 • 2回复 待解决
HarmonyOS SDK和openHarmony SDK怎么选择?
8207浏览 • 1回复 待解决
api 10或者11怎么打开wifi开关?
853浏览 • 0回复 待解决
下拉刷新和上拉加载API为9sdk
2800浏览 • 1回复 待解决
如何在Native层加载so
1167浏览 • 1回复 待解决
提问
该提问已有0人参与 ,帮助了0人