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

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

    The issue comes mostly when you are cloning a previous project specially from github. What you can do is

    1. Change the classpath to

    classpath 'com.android.tools.build:gradle:3.2.1'

    in your project level gradle.

    1. Then Change all the instances of compile with implementation except compileSdkVersion keep it as it is in your app level gradle.

    2. Instead of sync now click on make project(Ctrl+F9)

    3. Add google maven repositories if needed.

    4. Upgrade the gradle wrapper if needed.

    (Android Studio IDE will ask / guide you with the same for steps 4 and 5)

    it fixes!! Enjoy Coding

提交回复
热议问题