Gradle
If you looking for solution for Gradle build system. Look at this answer.
Short answer.
###Short answer. AddAdd the string
arguments "-DANDROID_STL=c++_shared"
in your build.gradle
. Like
android {
...
defaultConfig {
...
externalNativeBuild {
cmake {
...
arguments "-DANDROID_STL=c++_shared"
}
}
}
...
}