In my case, I needed to update std = c ++
I mean, in my Gradle file it was
android { ... defaultConfig { ... externalNativeBuild { cmake { cppFlags "-std=c++11", "-Wall" arguments "-DANDROID_STL=c++_static", "-DARCORE_LIBPATH=${arcore_libpath}/jni", "-DARCORE_INCLUDE=${project.rootDir}/app/src/main/libs" } } .... }
I changed this line
android { ... defaultConfig { ... externalNativeBuild { cmake { cppFlags "-std=c++17", "-Wall" <-- this number from 11 to 17 (or 14) arguments "-DANDROID_STL=c++_static", "-DARCORE_LIBPATH=${arcore_libpath}/jni", "-DARCORE_INCLUDE=${project.rootDir}/app/src/main/libs" } } .... }
What is it...
Aleksey Timoshchenko Aug 29 '19 at 12:46 2019-08-29 12:46
source share