title: Using JSON for Modern c++ and Gradle Android Studio
body: <p>I am trying to use <a href="https://github.com/nlohmann/json" rel="nofollow noreferrer">https://github.com/nlohmann/json</a> in my Android app with C++. The issue is that when I go to build I get the error "no member named 'to_string' in namespace 'std'". I have followed the instructions on the Github for Android, except I have used Gradle to specify the <code>stl</code> and flags:</p>
  
  <pre><code>ndk {
      stl "c++_static"
  }
  
  externalNativeBuild {
      cmake {
          cppFlags "-fexceptions -frtti -std=c++11"
      }
  }
  </code></pre>
  
  <p>Does anyone have any suggestions on how to make this library work on Android and use Gradle to set the <code>stl</code> properly?</p>