I want to compile an open source android project (Netguard) using gradel (gradlew clean build) But I encountered this Error:
A problem occurred
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.