DevOps | Cloud | Analytics | Open Source | Programming





How To Fix - Error: No Toolchains Found in the NDK Toolchains Folder in Android ?



In this post, we will see How To Fix - "Error: No toolchains found in the NDK toolchains folder" in Android. You might face this error while compiling your Android\Flutter Project. The error might appear in various facets based on your installation, version used and platform. This is mostly a dependency failure.


Exception thrown while executing model rule
No toolchains found in the NDK toolchains folder for ABI with prefix: llvm


No toolchains found in the NDK toolchains folder for ABI with prefix mips64el-linux-android


Execution failed for task ':X:yyyyyyyy'.

No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi


No toolchains found in the NDK toolchains folder for ABI with prefix mipsel-linux-android

  Let's see the options you could opt as a solution to fix this issue -  

Option 1 :

  • The issue could possibly be with regards to the Gradle version used - you need to check the version compatibility of your build with the corresponding Gradle version. And ensure that correct Gradle version is being picked up.
 

  • First thing first - whenever such kind of error occurs, it is a good practice to check and then update project builds to use Gradle plugin as well as Gradle version - updated to the Latest Stable and compatible version. This would encompass changing classpath in build.gradle file and Gradle version in gradle-wrapper.properties file. We have written a detailed post with regards to how to update\upgrade and keep your Gradle version compatible. Read it here - How to Update or Upgrade Gradle version in Android Studio? 
build.gradle file


buildscript {
  repositories {
        **google()**
 **jcenter()
        maven { url 'https://maven.fabric.io/public' }
        mavenCentral()**   
        ...
    }
    dependencies {
      classpath("com.android.tools.build:gradle:x.y.z")
      classpath {'com.google.gms:google-services:**x.y.z**'}
    }
}

gradle-wrapper.properties file


distributionUrl = "https\\://services.gradle.org/distributions/gradle-**x.y.z**\-all.zip"

   

Option 2 :

  • This fix is conditional. Hence if your project don't require NDK mandatorily, you could try uninstalling the NDK in the SDK-Tools.
 

  • Depending on what version of Android Studio you are using, one of the below steps should work for uninstalling ndk -

    • Uninstall from - Android Studio -> Preferences -> System Settings -> Android SDK -> SDK Tools -> Deselect NDK -> Apply button. Or
    • Uninstall from - Android studio ( Tools -> Android -> SDK Manager ) .Select ndk and then delete it.
  • Compile you Project\Gradle post ndk uninstallation.

   

Option 3 :

  • If you might opt to use an older version still or don't want to upgrade Gradle, read on.
  • Let's say for some reason, you would still require older NDK.
  • Be aware that for NDK >= 18 ,  you would need to update Android Gradle plugin to version>=3.1.x.
  • Also be aware that - Support for "mips abi" is no longer available in the latest releases. mips was deprecated from the latest releases of ndk. Hence Gradle newer versions will not have mips. But the older version of Android Gradle plugin will still look out for mips. By default, it will assume the presence of these missing folders. And as such you would need to provide those files yourself.
  • Download older NDK from here - https://github.com/android/ndk/wiki/Unsupported-Downloads
  • Unzip the files
  • Go to your "toolchains" dir - Android\SDK\Ndk-Bundle\toolchains\
  • Compare the contents in the above folder with the downloaded-unzipped files. Most likely the "mips" files will be missing from toolchains folder.
  • Place all the downloaded-unzipped files (or just the missing files) in this "toolchains" dir. The important folders\files to be placed are -
    • mips64el-linux-android-x.y (e.g. mips64el-linux-android-4.9)
    • mipsel-linux-android-x.y (e.g. mipsel-linux-android-4.9)
  • Rebuild your project once files\folders are placed.
Note: You can configure path to ndk-bundle in the local.properties file by pointing to your ndk version. local.properties


ndk.dir=<path>/android-ndk-r21e
sdk.dir=<path>/sdk

  Hope this helps to solve the error.  

Other Interesting Reads –

   


no toolchains found in the ndk toolchains react native ,no toolchains found in the ndk toolchains folder for abi with prefix: mips64el-linux-android ,azure no toolchains found in the ndk toolchains folder for abi with prefix: arm-linux-androideabi ,no compatible toolchains found for request filter ,could not determine ndk host architecture. none of the following directories exist ,ndk does not contain any platforms. ,location specified by ndk dir did not contain a valid ndk and and couldn't be used ,ndk is missing a platforms'' directory android studio 4.1 1 ,android no toolchains found in the ndk toolchains folder for abi with prefix mips64el-linux-android ,android studio no toolchains found in the ndk toolchains folder for abi with prefix ,error-no-toolchains-found-in-the-ndk-toolchains-folder-for-abi-with-prefix-llc ,gradle sync failed no toolchains found in the ndk toolchains folder for abi with prefix ,linux no toolchains found in the ndk toolchains folder for abi with prefix arm-linux-androideabi , ,No toolchains found in the NDK toolchains folder ,no toolchains found in the ndk toolchains folder for abi with prefix arm-linux-androideabi ,no toolchains found in the ndk toolchains folder for abi with prefix arm-linux-androideabi flutter ,no toolchains found in the ndk toolchains folder for abi with prefix react native ,no toolchains found in the ndk toolchains folder for abi with prefix flutter ,no toolchains found in the ndk toolchains folder for abi with prefix arm-linux-androideabi appcenter ,no toolchains found in the ndk toolchains folder for abi with prefix arm-linux-androideabi azure ,no toolchains found in the ndk toolchains folder for abi with prefix arm-linux-androideabi mac ,no toolchains found in the ndk toolchains folder for abi with prefix arm-linux-androideabi \* try ,no toolchains found in the ndk toolchains folder for abi with prefix arm-linux-android ,error-no-toolchains-found-in-the-ndk-toolchains-folder-for-abi-with-prefix-llc ,no toolchains found in the ndk toolchains folder for abi with prefix mips64 ,no toolchains found in the ndk toolchains folder for abi with prefix mips64el ,no toolchains found in the ndk toolchains folder for abi with prefix arm-li ,no toolchains found in the ndk toolchains folder ,no toolchains found in the ndk toolchains folder for abi ,no toolchains found in the ndk toolchains ,no toolchains found in the ndk toolchains folder for abi with prefix mips64el-linux-android ,no toolchains found in the ndk toolchains folder for abi with prefix ,gradle sync failed no toolchains found in the ndk toolchains folder for abi with prefix ,linux no toolchains found in the ndk toolchains folder for abi with prefix arm-linux-androideabi ,android studio no toolchains found in the ndk toolchains folder for abi with prefix ,no toolchains found in the ndk toolchains folder for abi with prefix x86 ,no toolchains found in the ndk toolchains folder for abi with prefix arm-linux-androideabi android ,no toolchains found in the ndk toolchains folder for abi with prefix arm-linux-androideabi fastlane , , , ,no toolchains found in the ndk toolchains ,no toolchains found in the ndk toolchains folder ,no toolchains found in the ndk toolchains folder based ,no toolchains found in the ndk toolchains folder box ,no toolchains found in the ndk toolchains folder build ,no toolchains found in the ndk toolchains folder by ,no toolchains found in the ndk toolchains folder c# ,no toolchains found in the ndk toolchains folder called ,no toolchains found in the ndk toolchains folder command ,no toolchains found in the ndk toolchains folder connection ,no toolchains found in the ndk toolchains folder device ,no toolchains found in the ndk toolchains folder dialog ,no toolchains found in the ndk toolchains folder directory ,no toolchains found in the ndk toolchains folder download ,no toolchains found in the ndk toolchains folder for abi ,no toolchains found in the ndk toolchains folder for abi with prefix ,no toolchains found in the ndk toolchains folder for abi with prefix arm-li ,no toolchains found in the ndk toolchains folder for abi with prefix arm-linux-android ,no toolchains found in the ndk toolchains folder for abi with prefix arm-linux-androideabi ,no toolchains found in the ndk toolchains folder for abi with prefix arm-linux-androideabi \* try ,no toolchains found in the ndk toolchains folder for abi with prefix arm-linux-androideabi appcenter ,no toolchains found in the ndk toolchains folder for abi with prefix arm-linux-androideabi azure ,no toolchains found in the ndk toolchains folder for abi with prefix arm-linux-androideabi fastlane ,no toolchains found in the ndk toolchains folder for abi with prefix arm-linux-androideabi flutter ,no toolchains found in the ndk toolchains folder for abi with prefix arm-linux-androideabi mac ,no toolchains found in the ndk toolchains folder for abi with prefix flutter ,no toolchains found in the ndk toolchains folder for abi with prefix mips64 ,no toolchains found in the ndk toolchains folder for abi with prefix mips64el ,no toolchains found in the ndk toolchains folder for abi with prefix mips64el-linux-android ,no toolchains found in the ndk toolchains folder for abi with prefix react native ,no toolchains found in the ndk toolchains folder for abi with prefix x86 ,no toolchains found in the ndk toolchains folder handle ,no toolchains found in the ndk toolchains folder has ,no toolchains found in the ndk toolchains folder headers ,no toolchains found in the ndk toolchains folder home ,no toolchains found in the ndk toolchains folder html ,no toolchains found in the ndk toolchains folder icon ,no toolchains found in the ndk toolchains folder in linux ,no toolchains found in the ndk toolchains folder ios ,no toolchains found in the ndk toolchains folder is ,no toolchains found in the ndk toolchains folder java ,no toolchains found in the ndk toolchains folder javascript ,no toolchains found in the ndk toolchains folder jquery ,no toolchains found in the ndk toolchains folder js ,no toolchains found in the ndk toolchains folder kali ,no toolchains found in the ndk toolchains folder keeps ,no toolchains found in the ndk toolchains folder key ,no toolchains found in the ndk toolchains folder kotlin ,no toolchains found in the ndk toolchains folder kubernetes ,no toolchains found in the ndk toolchains folder on ,no toolchains found in the ndk toolchains folder only ,no toolchains found in the ndk toolchains folder options ,no toolchains found in the ndk toolchains folder que ,no toolchains found in the ndk toolchains folder query ,no toolchains found in the ndk toolchains folder question ,no toolchains found in the ndk toolchains folder queue ,no toolchains found in the ndk toolchains folder quick ,no toolchains found in the ndk toolchains folder test ,no toolchains found in the ndk toolchains folder to ,no toolchains found in the ndk toolchains folder tool ,no toolchains found in the ndk toolchains folder type ,no toolchains found in the ndk toolchains folder ubuntu ,no toolchains found in the ndk toolchains folder unity ,no toolchains found in the ndk toolchains folder upload ,no toolchains found in the ndk toolchains folder using ,no toolchains found in the ndk toolchains folder video ,no toolchains found in the ndk toolchains folder you ,no toolchains found in the ndk toolchains folder youtube ,no toolchains found in the ndk toolchains folder yum ,no toolchains found in the ndk toolchains folder zerodha ,no toolchains found in the ndk toolchains folder zip ,no toolchains found in the ndk toolchains folder zone ,no toolchains found in the ndk toolchains folder zoom


no toolchains found in the ndk toolchains folder for abi with prefix: arm-linux-androideabi ,arm-linux-androideabi-gcc no such file or directory ,arm-linux-androideabi-gcc not found ,arm-linux-androideabi-gcc download ,arm-linux-androideabi-gcc install ,arm-linux-androideabi-g++ ,arm-linux-androideabi/bin/ld: error: cannot find ,aarch64-linux-android-gcc no such file or directory ,abi with prefix mips64el-linux-android ,android ndk mips64el-linux-android ,debian mips64 ,download mips64el-linux-android ,folder for abi with prefix mips64el-linux-android ,linux mips emulator ,mips64 emulator ,mips64el-linux-android ,mips64el-linux-android batch ,mips64el-linux-android button ,mips64el-linux-android c# ,mips64el-linux-android command ,mips64el-linux-android download ,mips64el-linux-android error ,mips64el-linux-android example ,mips64el-linux-android failed ,mips64el-linux-android file ,mips64el-linux-android github ,mips64el-linux-android hook ,mips64el-linux-android in linux ,mips64el-linux-android integration ,mips64el-linux-android is not working ,mips64el-linux-android jar ,mips64el-linux-android java ,mips64el-linux-android jdk ,mips64el-linux-android js ,mips64el-linux-android kernel ,mips64el-linux-android key ,mips64el-linux-android keyboard ,mips64el-linux-android kubernetes ,mips64el-linux-android library ,mips64el-linux-android linux ,mips64el-linux-android mac ,mips64el-linux-android ndk ,mips64el-linux-android on ubuntu ,mips64el-linux-android on windows ,mips64el-linux-android output ,mips64el-linux-android query ,mips64el-linux-android questions ,mips64el-linux-android queue ,mips64el-linux-android queued ,mips64el-linux-android reader ,mips64el-linux-android review ,mips64el-linux-android toolchain ,mips64el-linux-android ubuntu ,mips64el-linux-android update ,mips64el-linux-android utility ,mips64el-linux-android version ,mips64el-linux-android x86 ,mips64el-linux-android xcode ,mips64el-linux-android xml ,mips64el-linux-android xray ,mips64el-linux-android youtube ,mips64el-linux-android zendesk ,mips64el-linux-android zip ,mips64el-linux-android zip file ,mips64el-linux-android zone ,mips64el-linux-android zoom ,mips64el-linux-android ダウンロード ,mips64el-linux-android 下载 ,mips64el-linux-android-4.9 download ,mips64el-linux-android-strip ,ndk mips64el-linux-android ,no toolchains found in the ndk mips64el-linux-android ,mipsel-linux-android ,mipsel-linux-android android ,mipsel-linux-android api ,mipsel-linux-android browser ,mipsel-linux-android c# ,mipsel-linux-android command ,mipsel-linux-android command line ,mipsel-linux-android command not found ,mipsel-linux-android error ,mipsel-linux-android example ,mipsel-linux-android failed ,mipsel-linux-android file ,mipsel-linux-android github ,mipsel-linux-android integration ,mipsel-linux-android jar ,mipsel-linux-android java ,mipsel-linux-android js ,mipsel-linux-android kernel ,mipsel-linux-android key ,mipsel-linux-android kubernetes ,mipsel-linux-android manual ,mipsel-linux-android method ,mipsel-linux-android mysql ,mipsel-linux-android not found ,mipsel-linux-android not working ,mipsel-linux-android npm ,mipsel-linux-android oracle ,mipsel-linux-android pdf ,mipsel-linux-android query ,mipsel-linux-android questions ,mipsel-linux-android queue ,mipsel-linux-android syntax ,mipsel-linux-android test ,mipsel-linux-android tutorial ,mipsel-linux-android ubuntu ,mipsel-linux-android update ,mipsel-linux-android utility ,mipsel-linux-android version ,mipsel-linux-android windows ,mipsel-linux-android windows 10 ,mipsel-linux-android x86 ,mipsel-linux-android xamarin ,mipsel-linux-android xcode ,mipsel-linux-android xml ,mipsel-linux-android yaml ,mipsel-linux-android youtube ,mipsel-linux-android zero ,mipsel-linux-android zip ,mipsel-linux-android zip file ,mipsel-linux-android zone ,mipsel-linux-android-4.9 download ,mipsel-linux-android-ld ,mipsel-linux-gcc