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

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

    I have faced the same problem while update Android studio from 2.0 to 2.1 in my Windows 8 machine.

    I found a solution for that.Please use the following steps.

    1. Download the android NDK for windows from https://developer.android.com/ndk/downloads/index.html.
    2. Extract the same and copy the "toolchain" folder from the bundle.
    3. Paste the folder under installed NDK folder under C:\android-sdk-win\ndk-bundle.[Installed the path may vary based on your installation]
    4. Restart android studio.

    This is happening because Android studio won't gets full NDK update in the stable channel. If you are not using NDK for your project development you can simply remove the NDK folder from your SDK directory.

提交回复
热议问题