title: How to properly use NDK-Build in Android Studio 2.2 Preview 1
body: <p><strong>Android Studio 2.2 Preview 1</strong> has a new external ndk build feature, but from <code>app/build.gradle</code> snippet shown in official blog post it's not clear at all how to set additional ndk build parameters which <code>Application.mk</code> file usually contains <a href="https://i.stack.imgur.com/bjRJx.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bjRJx.png" alt="enter image description here"></a> </p>
  
  <p>I'm able to set <code>Android.mk</code> ndk build file via <code>externalNativeBuild</code>, but how could I set the required <code>Application.mk</code> variables?</p>
  
  <p>My <code>Application.mk</code> contains:</p>
  
  <pre><code>NDK_TOOLCHAIN_VERSION := clang
  APP_PLATFORM := android-16
  APP_ABI := armeabi
  APP_STL := c++_static
  APP_CPPFLAGS += -std=c++11
  </code></pre>