APP_STL gnustl_static is no longer supported
When I try to use the build.py script or the ndk-build -j 2 command I get the error:
Library/Android/sdk/ndk-bundle/build/core/add-application.mk:178: *** Android NDK: APP_STL gnustl_static is no longer supported. Please switch to either c++_static or c++_shared. See https://developer.android.com/ndk/guides/cpp-support.html for more information. . Stop.
I tried changing the Application.mk file and replacing the gnustl_static with c++_static and I get a compilation error.
I cloned the repo recursively as the README said and the envsetup script exectuted successfully.
Is there something I'm not doing?
I'm using NDK (Side by side) 21.0.6113669 on macOS 10.15.2
android-ndk-r19c my Application.mk set APP_STL := c++_static APP_CPPFLAGS := -frtti -fexceptions -fpermissive -std=c++11 -w -Wno-narrowing APP_ABI := armeabi-v7a APP_PLATFORM := android-21 NDK_TOOLCHAIN_VERSION := clang #APP_CFLAGS+=-DDLIB_NO_GUI_SUPPORT=on #APP_CFLAGS+=-DDLIB_PNG_SUPPORT=off APP_CFLAGS+=-DDLIB_JPEG_SUPPORT=off APP_CFLAGS+=-DDLIB_JPEG_STATIC=off
android-ndk-r19c my Application.mk set APP_STL := c++_static APP_CPPFLAGS := -frtti -fexceptions -fpermissive -std=c++11 -w -Wno-narrowing APP_ABI := armeabi-v7a APP_PLATFORM := android-21 NDK_TOOLCHAIN_VERSION := clang #APP_CFLAGS+=-DDLIB_NO_GUI_SUPPORT=on #APP_CFLAGS+=-DDLIB_PNG_SUPPORT=off APP_CFLAGS+=-DDLIB_JPEG_SUPPORT=off APP_CFLAGS+=-DDLIB_JPEG_STATIC=off
did you build success . i can`t build success .because opencv 3.1.0 depend on gnustl,