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

前端 未结 30 2451
猫巷女王i
猫巷女王i 2020-11-27 09:45

I want to compile an open source android project (Netguard) using gradel (gradlew clean build) But I encountered this Error:

A problem occurred          


        
相关标签:
30条回答
  • 2020-11-27 09:51

    If you are using Ionic 3 Remove ndk from android studio sdk tools.

    0 讨论(0)
  • 2020-11-27 09:52

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

    0 讨论(0)
  • 2020-11-27 09:52

    I uninstalled the NDK since I didn't need it . Go to SDK manager on Android studio ( Tools -> Android -> SDK Manager ) . If NDK is installed . Just uncheck the box and click OK . The installed components will be deleted .

    0 讨论(0)
  • 2020-11-27 09:54

    Error message: “No toolchains found in the NDK toolchains folder for ABI with prefix: llvm” .

    After fresh web installation of Android Studio with NDK, I imported an Android code sample that used NDK from GitHub and tried to compile it.

    As a result had an Error:

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

    Solution: for some reasons standard installation process on macOS had failed to install a complete set:

    ~/Library/Android/sdk/ndk-bundle had missed folder toolchains with all tools,

    (it should be like this: ~/Library/Android/sdk/ndk-bundle/toolchains)

    The solution was to download NDK separately, open it, copy folder toolchain and paste it to the folder:

    ~/Library/Android/sdk/ndk-bundle
    

    After that it worked well for me.

    0 讨论(0)
  • 2020-11-27 09:54

    NOTE: This answer seems to be specific to: No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android, but it was linked here by:

    * https://stackoverflow.com/questions/52193274/no-toolchains-found-in-the-ndk-toolchains-folder-for-abi-with-prefix-mips64el-l

    From NDK r19b:

    more ~/Android/Sdk/ndk-bundle/CHANGELOG.md
    
    • This version of the NDK is incompatible with the Android Gradle plugin version 3.0 or older. If you see an error like No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android, update your project file to [use plugin version 3.1 or newer]. You will also need to upgrade to Android Studio 3.1 or newer.
    0 讨论(0)
  • 2020-11-27 09:56

    For me I think there might be some issue in installing android NDK from android studio. I was able to resolve this in following manner

    Downloaded android ndk from

    https://developer.android.com/ndk/downloads/index.html

    and placed inside ndk-bundle (where your android sdk is installed ). For more info check this screens.

    https://app.box.com/s/dfi4h9k7v4h0tmbu3z9qnqx3d12fdejn

    0 讨论(0)
提交回复
热议问题