Android NDK CMake uses C++17
The NDK's toolchain file obeys -std
settings as it should. Both flags will appear, but they do so in the order that has the user's setting override the toolchains.
It sounds like you have something like target_compile_features(foobar PRIVATE cxx_range_for)
or set_property(TARGET foobar PROPERTY CXX_STANDARD 11)
somewhere in your build.