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

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

    Solved it by adding google() dependency into both repositories in build.gradle(Project: ProjectName). then sync your project

    buildscript {
        repositories {
            google()
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:2.3.2'
    
            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    }
    
    allprojects {
        repositories {
            google()
            jcenter()
        }
    }
    

提交回复
热议问题