2016-11-11 61 views
0

在我的Android.mk和Application.mk中,我使用的是使用stlpot_static构建的静态库,但是我想用gnustl代替stlport来构建我的项目,因为我需要支持的C++ 11在我的项目中。 早些时候我在使用APP_STL := stlport_shared Application.mk,我的项目运行成功。 但现在我想使它APP_STL := gnustl_shared,项目编译成功,但它在运行时崩溃给我一个错误java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZNSt13_Filebuf_base12_M_page_sizeE",当我检查这个错误,我发现这个依赖我的静态库,它是使用stlport_static构建。将gnustl链接到stdport_static的Android ndk项目

如何在不影响依赖于stlport_static的静态库的情况下使用gnustl与我的项目。

回答