How do I integrate C++11 into Android?
You can also set this in your build.gradle file if you are using the gradle-experimental-plugin:
android.ndk { moduleName = "hello-android-jni" stl = "stlport_shared" cppFlags.add("-std=c++11") }