【问题标题】:No toolchains found in the NDK toolchains folder for ABI with prefix在带有前缀的 ABI 的 NDK 工具链文件夹中找不到工具链
【发布时间】:2019-06-06 08:54:37
【问题描述】:

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

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')
}

我想像这样创建流动抽屉 enter image description here

【问题讨论】:

    标签: android android-studio build drawer


    【解决方案1】:

    替换

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

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

    在模块级 build.gradle 文件中。

    简而言之,解决方案是将您的烤盘升级到 3.1 或更高级别以修复 No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android 问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-05-14
      • 2016-05-09
      • 2023-03-02
      • 2021-10-30
      • 2019-02-11
      • 2016-09-30
      • 2017-10-20
      • 2019-04-15
      相关资源
      最近更新 更多