title: how to specify NDK_TOOLCHAIN_VERSION in gradle file for android ndk build
body: <p>I am moving my Android project that uses ndk-build to use the gradle build system as described in the examples of the new build tools for android. In this link <a href="http://tools.android.com/tech-docs/new-build-system" rel="noreferrer">http://tools.android.com/tech-docs/new-build-system</a>. I am looked at the gradle-samples-0.11 at the bottom of the page for inspiration.</p>
  
  <p>So I managed to configure all of the pieces I need by including the following code in my build.gradle default config section.</p>
  
  <pre><code>ndk {
              moduleName "MyModuleName"
              ldLibs "log"
              cFlags "-std=c++11 -fexceptions"
              stl "gnustl_static"
  }
  </code></pre>
  
  <p>I have this line in my Application.mk file in the original project:
    NDK_TOOLCHAIN_VERSION := 4.9
  It is the last piece I can't configure. </p>
  
  <p>I am using NDK Revision 10. I need this NDK_TOOLCHAIN_VERSION:=4.9 because my build is reporting Error:(25, 11) error: expected nested-name-specifier before 'Integer' and the c++ code at that line looks like this.</p>
  
  <pre><code>using Integer = int16_t;
  </code></pre>
  
  <p>Does anyone have an idea on how I can solve this, please?</p>