title: How to switch to either c++_shared or c++_static with CMAKE?
body: <p>On android Studio trying to build a project with CPP code but it gave <code>gnustl_static is no longer supported.</code> error. From other answer I added following on build.gradle:</p>
  
  <pre><code> ndk {
          moduleName = "app"
          stl = "stlport_static"
      }
  </code></pre>
  
  <p>but it doesn't work and shows this error message again. Tried <a href="https://developer.android.com/ndk/guides/cmake.html#variables" rel="nofollow noreferrer">this link</a> added <code>ANDROID_STL=c++_static</code> on <code>cmake{...}</code> but got following error:</p>
  
  <pre><code>CMake Error: The source directory "G:/Applications/.../app/ANDROID_STL=c++_static" does not exist.
  </code></pre>
  
  <p>How to solve this error message on latest android studio?</p>