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

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


Two years has passed, now if you come across here, you may possibly encounterd error message like this:

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

or

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

Latest NDK removed support for mips abi, and earler version of android gradle plugin still check for the existance of mips toolchain. see here for more info.

Solution: Upgrade android gradle plugin to 3.1 or newer.

e.g. Add following in the project level gradle [28-Sept-2018]

 classpath "com.android.tools.build:gradle:3.2.0"

Workaround: Create mipsel-linux-android folder structure to fool the tool. The easiest way would be to symbolic link to aarch64-linux-android-4.9.

# on Maccd  ~/Library/Android/sdk/ndk-bundle/toolchainsln -s aarch64-linux-android-4.9 mips64el-linux-androidln -s arm-linux-androideabi-4.9 mipsel-linux-android

Check this thread of three options for solving this kind of issue


For Android studio 3.2.1+

Upgrade your Gradle Plugin

classpath 'com.android.tools.build:gradle:3.2.1'

If you are now getting this error:

Could not find com.android.tools.build:gradle:3.2.1.

just add google() to your repositories, like this:

repositories {    google()    jcenter()}

Happy Coding -:)


I fixed this Error by uninstalling the NDK in the SDK-Tools.So, if you don't need the NDK, uninstall it.