title: NDK in Android Studio not working
body: <p>I am doing every single step from video:
  <a href="https://www.youtube.com/watch?v=kFtxo7rr2HQ" rel="nofollow">https://www.youtube.com/watch?v=kFtxo7rr2HQ</a>
  but no shared libraries are generated.</p>
  
  <p>Here is a version, where android-studio should generate shared libraries on his own. However when I create apropraite Makefiles and execute ndk-build, shared libraries are not generated as well.</p>
  
  <p><strong>MainActivity.java:</strong></p>
  
  <pre><code>public native String HelloJNI();
  
  static
  {
      System.loadLibrary("HelloJNI");
  }
  </code></pre>
  
  <p><strong>Build->Make Project</strong></p>
  
  <pre><code>[*@* main]$ javah -d jni -classpath {sdk_dir}/platforms/android-14/android.jar:../../build/intermediates/classes/debug com.example.ndker.ndkapp.MainActivity
  </code></pre>
  
  <p>Creating <strong>HelloJNI.c</strong>:</p>
  
  <pre><code>#include "com_example_ndker_ndkapp_MainActivity.h"
  JNIEXPORT jstring JNICALL Java_com_example_ndker_ndkapp_MainActivity_HelloJNI
          (JNIEnv *, jobject) {
      return (*env)-&gt;NewStringUTF(env, "Hello from jni");
  }
  </code></pre>
  
  <p><strong>local.properties:</strong></p>
  
  <pre><code>sdk.dir={sdk_dir}
  ndk.dir={ndk_dir}
  </code></pre>
  
  <p><strong>build.grandle</strong>:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
  compileSdkVersion 21
  buildToolsVersion "21.1.2"
  
  defaultConfig {
      applicationId "com.example.ndker.ndkapp"
      minSdkVersion 14
      targetSdkVersion 21
      versionCode 1
      versionName "1.0"
  
      ndk {
          moduleName "HelloJNI"
      }
  }
  
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
  }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.android.support:appcompat-v7:21.0.3'
  }
  </code></pre>
  
  <p>Thank You for replies.</p>