Error: 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

After looking around, the solution was to remove the NDK designation from my preferences.

Android Studio → Preferences → System Settings → Android SDK → SDK Tools → Unselect NDK → Apply button.

Project and Gradle compiled fine after that and I was able to move on with my project work.

As far as why this is happening, I do not know but for more info on NDK check out: https://developer.android.com/ndk/

I will go back and enable these libraries but for now.

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

In the build.gradle (Project: XXX) file, in dependencies I updated the classpath as follows:

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

Note: you have to enter the most recent version

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

downgrade NDK to NDK 20.1.5948944 fix this problem, more details:https://github.com/flutter/flutter/issues/76393.

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

Replace

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

with

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

In Module Level build.gradle file.

In short The solution is upgrad your griddle to 3.1 or higher level to fix No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android issue.

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

Answer from:

This is a problem with an old version of the Android Gradle plugin that only surfaced recently due to mips support being removed from the Android SDK. As stated above, it has nothing to do with the filament project.

Solution

Without downloading, updating, or copying anything, you can "fix" the error by simply creating an empty directory where the old version expects it.

Linux

mkdir -p $ANDROID_HOME/ndk-bundle/toolchains/mips64el-linux-android/prebuilt/linux-x86_64

MacOS

mkdir -p $ANDROID_HOME/ndk-bundle/toolchains/mips64el-linux-android/prebuilt/darwin-x86_64

Windows

mkdir %ANDROID_HOME%\ndk-bundle\toolchains\mips64el-linux-android\prebuilt\windows-x86_64

The ANDROID_HOME environment variable points to the root of the Android SDK installation.

Flutter Android build error in Azure Pipeline: No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi

As discussed in this github issue workaround, basically we need to add NDK version in app/build.gradle. The minimal solution would be:

android {
compileSdkVersion 30
ndkVersion "21.4.7075529"
...
}


Related Topics



Leave a reply



Submit