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

前端 未结 30 2666
猫巷女王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: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.

提交回复
热议问题