. Advertisement .
..3..
. Advertisement .
..4..
I get the error: no toolchains found in the ndk toolchains folder for abi with prefix: llvm, mips64el-linux-android when I try to run the program below:
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
}
The error appears the system notifies as follows:
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 tried to solve it with another sample. I got the reference in the community forum, but it still returned an invalid result. If someone knows the solution, please give me the support. Thanks!
The cause: Standard installation process on macOS didn’t set up a complete set:
Library/Android/sdk/ndk-bundle missed folder toolchains with all tools
Solution:You need to install NDK separately, open it, copy folder toolchain and paste it to the folder:
It has been two years since the last time you visited this site.
Or
The latest NDK does not support
mips
abi. However, the earler versions of android gradle still check for the existence of mips toolschain. For more information , please click here .Solution – Upgrade to Android gradle plugin 3.1 or higher.
e.g. Add the following to your project level gradle [28 September 2018]
Use to trick the tool: Create a
mipsel-linux-android
folder structure. To link symbolically toaarch64-linux-android-4.9
is the easiest.