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

前端 未结 30 2690
猫巷女王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 10:01

    Step-by-step:

    1) Open the page with old NDK versions:

    https://developer.android.com/ndk/downloads/older_releases

    2) Agree the Terms:

    3) Download the older version of NDK (for example 16b):

    4) Open your toolchains directory.

    5) Transfer files that you need from toolchains folder of downloaded zip-file to your toolchains folder:

    6) Rebuild the Project:


    UPD 30 Sep 2018:
    I used Android NDK Revision r16b for fix this error in my own case. So I present the example with this version.
    But it's better to use the Android NDK, Revision r17c (June 2018). It is the last one, supporting mips (reasonable reccomendation from Weekend's comment).

提交回复
热议问题