feifei423423 发表于 2023-3-17 21:39:27

网狐Android编译报错求助

debug可以打包release不行,这个报错没有头绪,有没有大佬提供一下思路帮助
Must remake target `D:/Client/frameworks/runtime-src/proj.android/app/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/libmmyx_yl.so'.
SharedLibrary: libmmyx_yl.so
D:/Client/frameworks/runtime-src/proj.android/app/jni/../../../Classes/LuaAssert/ry_MD5.cpp:356: error: undefined reference to 'std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char> >& std::__ndk1::operator<< <char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >(std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char> >&, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&)'
clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** Error 1


* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 22s
44 actionable tasks: 1 executed, 43 up-to-date
VCS Checkout Cache (D:\Client\frameworks\runtime-src\proj.android\.gradle\vcsWorkingDirs) has not been cleaned up in 0 days
执行命令出错,返回值:1。
*********************cocos compile fail*********************
请按任意键继续. . .

超哥 发表于 2023-3-19 16:24:31

这个libmmyx_yl.so 文件没编译出来或者是使用debug打包的, 使用release重新编译libmmyx_yl.so应该就解决了
页: [1]
查看完整版本: 网狐Android编译报错求助