Error No toolchains found in the NDK toolchains folder for ABI with prefix llvm

0 votes

I tried to use Gradel (gradlew clean build) to create an open source Android project (Netguard), but I ran into the following error:

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

I searched but didn't find anything helping. Here is the main build.gradle:

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
}

And here is the build.gradle of the app project:

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.+'
}

Additionally, I'm running Android-NDK-R10e and Gradle-2.9-all. If you require any additional information, please comment because I'm not sure if I should say anything else.

Sep 21 in Android by Edureka
• 11,040 points
11 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Android

0 votes
0 answers

What are the differences between C, C# and C++ in terms of real-world applications?

As I stated in an earlier article, ...READ MORE

Sep 20 in Android by Edureka
• 11,040 points
12 views
0 votes
0 answers

Android Studio: Where is the Compiler Error Output Window?

When I "Run" my project in Android ...READ MORE

Sep 21 in Android by Edureka
• 11,040 points
11 views
0 votes
0 answers

How do I turn a C# object into a JSON string in .NET?

I have classes like these: class MyDate { ...READ MORE

Sep 20 in Android by Edureka
• 11,040 points
13 views
0 votes
0 answers

What is the difference between C# and .NET?

May I know what is the difference ...READ MORE

Sep 20 in Android by Edureka
• 11,040 points
13 views
0 votes
0 answers

Android Open External Storage directory(sdcard) for storing file

For programmatic file saving, I want to ...READ MORE

Sep 21 in Android by Edureka
• 11,040 points
11 views
0 votes
0 answers

Error - Android resource linking failed (AAPT2 27.0.3 Daemon #0)

I have this error I am try reinstall ...READ MORE

Sep 21 in Android by Edureka
• 11,040 points
34 views
0 votes
1 answer
0 votes
1 answer

Invoke-customs are only supported starting with android 0 --min-api 26

After hours of working on this probleme, ...READ MORE

answered Feb 16 in Others by Soham
• 9,330 points
825 views
0 votes
1 answer

Android - VPN at the native layer

If it's doable in Java, it's also ...READ MORE

answered Feb 24 in Cyber Security & Ethical Hacking by Edureka
• 11,040 points
97 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP