Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ? Error
<p>I got project as Eclipse project, I moved it to Android studio</p>

<p>the build works well now, but when I try to run the app i get error message</p>

<p>this is my project structure:</p>

<p><a href="https://i.stack.imgur.com/Hd83O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Hd83O.png" alt="Proj"></a></p>

<p>This is my gradle file:</p>

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

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.testProj.test1"
        minSdkVersion 10
        targetSdkVersion 23

        ndk {
            moduleName "player_shared"
        }
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
    sourceSets {
//        jni.srcDirs = [] // This prevents the auto generation of Android.mk
        main.jniLibs.srcDirs = ['libs']
        test.jniLibs.srcDirs = ['libs']
    }
//    sourceSets.main {
//        jni.srcDirs = [] // This prevents the auto generation of Android.mk
//        jniLibs.srcDir 'src/main/libs' // This is not necessary unless you have precompiled libraries in your project.
//    }
    task buildNative(type: Exec, description: 'Compile JNI source via NDK') {
        def ndkDir = android.ndkDirectory
        commandLine "$ndkDir/ndk-build",
                '-C', file('src/main/jni').absolutePath, // Change src/main/jni the relative path to your jni source
                '-j', Runtime.runtime.availableProcessors(),
                'all',
                'NDK_DEBUG=1'
    }

    task cleanNative(type: Exec, description: 'Clean JNI object files') {
        def ndkDir = android.ndkDirectory
        commandLine "$ndkDir/ndk-build",
                '-C', file('src/main/jni').absolutePath, // Change src/main/jni the relative path to your jni source
                'clean'
    }

    clean.dependsOn 'cleanNative'

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

dependencies {
    compile 'com.google.android.gms:play-services:+'
    compile files('libs/PTAdChartboost.jar')
    compile files('libs/dagger-1.2.2.jar')
    compile files('libs/javax.inject-1.jar')
    compile files('libs/nineoldandroids-2.4.0.jar')
    compile files('libs/support-v4-19.0.1.jar')
}
</code></pre>

<p>This is Android.mk file:</p>

<pre><code>LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := player_shared

LOCAL_MODULE_FILENAME := libplayer

LOCAL_SRC_FILES := main.cpp 

LOCAL_WHOLE_STATIC_LIBRARIES :=  core_static cocos2dx_static box2d_static

include $(BUILD_SHARED_LIBRARY)

$(call import-module, core)
$(call import-module, cocos2dx)
$(call import-module, box2D)
</code></pre>

<p>The error messages:</p>

<pre><code>Error:(15) *** Android NDK: Aborting.    .  Stop.
Android NDK: /Users/mylaptop/Documents/Lines/app/src/main/jni/Android.mk: Cannot find module with tag 'core' in import path    
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?    
Android NDK: The following directories were searched:    
Android NDK:         
make: Entering directory `/Users/mylaptop/Documents/Lines/app/src/main/jni'
make: Leaving directory `/Users/mylaptop/Documents/Lines/app/src/main/jni'
:app:buildNative FAILED
Error:Execution failed for task ':app:buildNative'.
&gt; Process 'command '/Users/mylaptop/Documents/android-ndk-r10e/ndk-build'' finished with non-zero exit value 2
</code></pre>