ndkBuild trouble- non-zero exit value 2
<p>I have problem with my android project which I move from one computer to another. Of course everything works fine before I change computer and Android Studio version (from 1.5 to 2.2). Now when I want to run project I have this error:</p>

<blockquote>
  <p>Error:Execution failed for task ':app:ndkBuild'.
  Process 'command 'e:\Android\ndk\android-ndk-r12b\ndk-build.cmd'' finished with non-zero exit value 2</p>
</blockquote>

<p>Here my gradle build:</p>

<pre><code>apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.xxx.crossexample"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"

        sourceSets.main {
            jniLibs.srcDir 'src/main/libs'
            jni.srcDirs = []
        }
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    task ndkBuild(type: Exec) {
        Properties properties = new Properties()
        properties.load(project.rootProject.file('local.properties').newDataInputStream())
        def ndkDir = properties.getProperty('ndk.dir')
        commandLine "e:\\Android\\ndk\\android-ndk-r12b\\ndk-build.cmd", '-B', '-C', file('src/main/jni').absolutePath

    }

    tasks.withType(JavaCompile) {
        compileTask -&gt; compileTask.dependsOn ndkBuild
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.2.0'

}
</code></pre>

<p>And my local.properies</p>

<pre><code>sdk.dir=e\:\\Android\\sdk
ndk.dir=e\:\\Android\\ndk\\android-ndk-r12b
</code></pre>

<p>Any suggestions what is wrong with my code?</p>

<p>UPDATE
This is gradle console log:</p>

<pre><code>&gt; Executing tasks: [:app:clean, :app:generateDebugSources,
&gt; :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies,
&gt; :app:generateDebugAndroidTestSources, :app:assembleDebug]
&gt; 
&gt; Configuration on demand is an incubating feature. Incremental java
&gt; compilation is an incubating feature. :app:clean
&gt; :app:buildInfoDebugLoader :app:preBuild UP-TO-DATE :app:preDebugBuild
&gt; UP-TO-DATE :app:checkDebugManifest
&gt; :app:prepareComAndroidSupportAnimatedVectorDrawable2320Library
&gt; :app:prepareComAndroidSupportAppcompatV72320Library
&gt; :app:prepareComAndroidSupportSupportV42320Library
&gt; :app:prepareComAndroidSupportSupportVectorDrawable2320Library
&gt; :app:prepareDebugDependencies :app:compileDebugAidl
&gt; :app:compileDebugRenderscript :app:generateDebugBuildConfig
&gt; :app:generateDebugResValues :app:generateDebugResources
&gt; :app:mergeDebugResources :app:processDebugManifest
&gt; :app:processDebugResources :app:generateDebugSources
&gt; :app:mockableAndroidJar UP-TO-DATE :app:preDebugUnitTestBuild
&gt; UP-TO-DATE :app:prepareDebugUnitTestDependencies
&gt; :app:preDebugAndroidTestBuild UP-TO-DATE
&gt; :app:prepareDebugAndroidTestDependencies
&gt; :app:compileDebugAndroidTestAidl :app:processDebugAndroidTestManifest
&gt; :app:compileDebugAndroidTestRenderscript
&gt; :app:generateDebugAndroidTestBuildConfig
&gt; :app:generateDebugAndroidTestResValues
&gt; :app:generateDebugAndroidTestResources
&gt; :app:mergeDebugAndroidTestResources
&gt; :app:processDebugAndroidTestResources
&gt; :app:generateDebugAndroidTestSources
&gt; :app:incrementalDebugJavaCompilationSafeguard :app:ndkBuild make:
&gt; Entering directory
&gt; `E:/AndroidStudioProjects/CrossExample/CrossExample/app/src/main/jni'
&gt; 
&gt; make: *** No rule to make target
&gt; `E:/AndroidStudioProjects/CrossExample/app/src/main/jni/SuperpoweredExample.cpp',
&gt; needed by
&gt; `E:/AndroidStudioProjects/CrossExample/CrossExample/app/src/main/obj/local/arm64-v8a/objs/SuperpoweredExample/E_/AndroidStudioProjects/CrossExample/app/src/main/jni/SuperpoweredExample.o'.
&gt; Stop.
&gt; 
&gt; make: Leaving directory
&gt; `E:/AndroidStudioProjects/CrossExample/CrossExample/app/src/main/jni'
&gt; :app:ndkBuild FAILED
&gt; 
&gt; FAILURE: Build failed with an exception.
&gt; 
&gt; * What went wrong: Execution failed for task ':app:ndkBuild'.
&gt; &gt; Process 'command 'e:\Android\ndk\android-ndk-r11c\ndk-build.cmd'' finished with non-zero exit value 2
&gt; 
&gt; * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
&gt; 
&gt; BUILD FAILED
&gt; 
&gt; Total time: 7.778 secs
</code></pre>