Application.mk中必须有红色申明
APP_ABI := armeabi armeabi-v7a
APP_PLATFORM := android-9
APP_STL := gnustl_shared
android-9中Android.mk我没有做任何申明,一样可以用,但网上很多都加了
RUNTIME_STL_PATH :=$(NDK_ROOT)/sources/cxx-stl/gnu-libstdc++
LOCAL_C_INCLUDES := sources/cxx-stl/gnu-libstdc++/include/
......
然后System.loadLibrary("gnustl_shared");
阅读(973) | 评论(0) | 转发(0) |