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

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

    I've had a similar problem, but I wanted to use NDK version r9d due to project requirements.

    In local.properties the path was set to ndk.dir=C\:\\Android\\ndk\\android-ndk-r9d but that lead to the problem:

    No toolchains found in the NDK toolchains folder for ABI with prefix: [toolchain-name]

    The solution was to:

    1. Install the newest NDK using sdk manager
    2. Copy the missing toolchain [toolchain-name] from the new ndk to the old. In my case from sdk\ndk-bundle\toolchains to \ndk\android-ndk-r9d\toolchains
    3. Repeat the process till all the required toolchains are there

    It looks to me that the copied toolchains are not used, but for some reason it is needed to for them be there.

提交回复
热议问题