在NDK工具链文件夹中找不到带有前缀的ABI的工具链

时间:2019-01-11 12:19:24

标签: android android-studio build drawer

我想为此创建一个Flow Drawer,我从GitHub下载了应用程序代码,但是在运行/执行代码时,我面临以下错误

No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android

请参见build.gradle(应用和模块级别)的以下代码

模块级别build.gradle

buildscript {
repositories {
    jcenter()
    maven {
        url 'https://maven.google.com/'
        name 'Google'
    }
}
dependencies {
    classpath 'com.android.tools.build:gradle:2.2.0'
    classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
    classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'


    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}
}

allprojects {
repositories {
    jcenter()
    maven {
        url 'https://maven.google.com/'
        name 'Google'
    }
}
}

应用程序级别build.gradle

apply plugin: 'com.android.application'

android {
compileSdkVersion 28
buildToolsVersion '28.0.3'

defaultConfig {
    applicationId "com.mxn.soul.flowingdrawer"
    minSdkVersion 14
    targetSdkVersion 28
    versionCode 120
    versionName "1.2.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.squareup.picasso:picasso:2.5.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.nineoldandroids:library:2.4.0'
implementation project(':flowingdrawer-core')
}

我想这样创建Flowing Drawer enter image description here

1 个答案:

答案 0 :(得分:0)

替换

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

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

在“模块级” build.gradle文件中。

简而言之,该解决方案将您的平板炉升级到3.1或更高级别,以修复在ABI的NDK工具链文件夹中找不到前缀为mipsel-linux-android的工具链。