Enable C++11 support on Android

后端 未结 4 1008
孤街浪徒
孤街浪徒 2020-12-04 11:47

How do I integrate C++11 into Android?

4条回答
  •  时光取名叫无心
    2020-12-04 12:24

    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")
    }
    

提交回复
热议问题