最新的anysdk和cocos2dxjs 3.17有人用androidstudio编译通过的吗?

[armeabi-v7a] StaticLibrary : librecast.a
[armeabi-v7a] StaticLibrary : libjscocos2dandroid.a
[armeabi-v7a] StaticLibrary : libcpufeatures.a
[armeabi-v7a] StaticLibrary : libcocos2dandroid.a
[armeabi-v7a] SharedLibrary : libcocos2djs.so
/Users/xxx/androidStudio/app/jni/…/…/…/Classes/jsb_anysdk_protocols_auto.cpp:1872: error: undefined reference to ‘anysdk::framework::AgentManager::init(std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >)’
/Users/xxx/androidStudio/app/jni/…/…/…/Classes/manualanysdkbindings.cpp:94: error: undefined reference to ‘anysdk::framework::PluginParam::PluginParam(std::__ndk1::map<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::less<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > >, std::__ndk1::allocator<std::__ndk1::pair<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > const, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > > > >)’
/Users/xxx/androidStudio/app/jni/…/…/…/Classes/manualanysdkbindings.cpp:333: error: undefined reference to ‘anysdk::framework::PluginParam::PluginParam(std::__ndk1::map<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::less<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > >, std::__ndk1::allocator<std::__ndk1::pair<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > const, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > > > >)’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/ios:668: error: undefined reference to ‘std::__1::ios_base::init(void*)’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/streambuf:371: error: undefined reference to ‘std::__1::locale::locale()’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/streambuf:220: error: undefined reference to ‘std::__1::locale::~locale()’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/iosfwd:126: error: undefined reference to ‘std::__1::ios_base::~ios_base()’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/streambuf:220: error: undefined reference to ‘std::__1::locale::~locale()’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/iosfwd:126: error: undefined reference to ‘std::__1::ios_base::~ios_base()’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/streambuf:220: error: undefined reference to ‘std::__1::locale::~locale()’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/istream:1624: error: undefined reference to ‘std::__1::ios_base::__set_badbit_and_consider_rethrow()’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/ios:524: error: undefined reference to ‘std::__1::ios_base::clear(unsigned int)’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/streambuf:220: error: undefined reference to ‘std::__1::locale::~locale()’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/iosfwd:126: error: undefined reference to ‘std::__1::ios_base::~ios_base()’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/ios:524: error: undefined reference to ‘std::__1::ios_base::clear(unsigned int)’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/istream:275: error: undefined reference to ‘std::__1::ios_base::getloc() const’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/__locale:174: error: undefined reference to ‘std::__1::locale::use_facet(std::__1::locale::id&) const’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/ios:524: error: undefined reference to ‘std::__1::ios_base::clear(unsigned int)’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/istream:288: error: undefined reference to ‘std::__1::ctype::id’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/ios:524: error: undefined reference to ‘std::__1::ios_base::clear(unsigned int)’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/ostream:973: error: undefined reference to ‘std::__1::ios_base::__set_badbit_and_consider_rethrow()’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/istream:322: error: undefined reference to ‘std::__1::ios_base::~ios_base()’
/Users/damien/git/polaris/gameClient/build/cocosjs/androidStudio/app/jni/…//protocols/android/./lib/armeabi-v7a/libPluginProtocolStatic.a(AgentManager.o):jni/…/…/platform/android/AgentManager.cpp:typeinfo for std::__1::basic_ios<char, std::__1::char_traits >: error: undefined reference to ‘typeinfo for std::__1::ios_base’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/ios:734: error: undefined reference to ‘std::__1::ios_base::getloc() const’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/__locale:174: error: undefined reference to ‘std::__1::locale::use_facet(std::__1::locale::id&) const’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/ostream:757: error: undefined reference to ‘std::__1::ios_base::__set_badbit_and_consider_rethrow()’
/Users/chukong/Developer/mac-android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/ostream:761: error: undefined reference to ‘std::__1::ctype::id’
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: * [/Users/xxx/androidStudio/app/build/intermediates/ndkBuild/anysdk/release/obj/local/armeabi-v7a/libcocos2djs.so] Error 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --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 4m 3s
31 actionable tasks: 1 executed, 30 up-to-date

Exited with code: 1.
Error executing child process: Error: Process exited with code 1.

官网也没有关于androidStudio版本的帮助,求助

先检查下静态库拷贝的对不对

对的,就是用了C++的库

那我也不清楚了,难道跟ndk版本有关?

ndk是用最新的,你们测试过是用那个版本可以?

想重新打包老项目真是不容易,估计现在也没有多少人会用cocos2dxjs来开发项目了,在用的一般都是老项目,老项目一般人都搞不来升级到最新的版本,你们也不会重视去测试,安卓的各种sdk就是各种的坑,一般是渠道SDK太坑难搞最后无办法才接anysdk,结果anysdk也是一样的坑,一声叹息

ndk r14 ,尝试各种情况编译都一样 2dx 3.17。

你们团队现在的最新环境是什么.
看起来是 anysdk的的cpp标准没有更新?

经过一天的尝试,终于成功了!
使用 gnustl_static 即可

大哥,你怎么搞定的,和你一样的错误,蛋疼