Error: No toolchains found in the NDK toolchains folder for ABI with prefix: llvm : <p>I want to compile an open source android project (Netguard) using gradel (<code>gradlew clean build</code>) But I encountered this Error:</p>

<pre><code>A problem occurred configuring project ':app'.
&gt; Exception thrown while executing model rule: NdkComponentModelPlugin.Rules#cre
ateToolchains
   &gt; No toolchains found in the NDK toolchains folder for ABI with prefix: llvm
</code></pre>

<p>I serached but didn't find enything helping. Here is the main <code>build.gradle</code>:</p>

<pre><code>buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle-experimental:0.6.0-alpha1'
    }
}
allprojects {
    repositories {
        jcenter()
    }
}
task clean(type: Delete) {
    delete rootProject.buildDir
}
</code></pre>

<p>And here is the <code>build.gradle</code> of the <code>app</code> project:</p>

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

model {
    android {
        compileSdkVersion = 23
        buildToolsVersion = "23.0.2"

        defaultConfig.with {
            applicationId = "eu.faircode.netguard"
            minSdkVersion.apiLevel = 21
            targetSdkVersion.apiLevel = 23
            versionCode = 2016011801
            versionName = "0.76"
            archivesBaseName = "NetGuard-v$versionName-$versionCode"
        }
    }
    android.ndk {
        moduleName = "netguard"
        toolchain = "clang"
        ldLibs.add("log")
    }
    android.sources {
        main {
            jni {
                source {
                    srcDir "src/main/jni/netguard"
                }
                exportedHeaders {
                }
            }
        }
    }
    android.buildTypes {
        release {
            minifyEnabled = true
            proguardFiles.add(file('proguard-rules.pro'))
            ndk.with {
                debuggable = true
            }
        }
    }
    android.buildTypes {
        debug {
            ndk.with {
                debuggable = true
            }
        }
    }
    android.productFlavors {
        create("all") {
        }
    }
}

dependencies {


compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.1.+'
    compile 'com.android.support:recyclerview-v7:23.1.+'
    compile 'com.squareup.picasso:picasso:2.5.+'
}
</code></pre>

<p>And I'm using <code>gradle-2.9-all</code> and <code>android-ndk-r10e</code>. I don't know if I should mention anything else, so comment if you need any information.</p>
