前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >解决"No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android"错误

解决"No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android"错误

作者头像
None_Ling
发布2018-12-28 15:57:15
7.3K0
发布2018-12-28 15:57:15
举报
文章被收录于专栏:Android相关Android相关

转载自:https://blog.csdn.net/vocanicy/article/details/83004626

今天安装了Android Studio 3.2,打开一个旧工程,编译提示:

代码语言:javascript
复制
"No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android"

网上也有解决办法,就是下载旧版的NDK,将其中的toolchain复制到新版的NDK中

但是感觉这种方式,不是解决的正道。

经过对新版NDK的研究,发现NDK的更新记录里有一段话

This version of the NDK is incompatible with the Android Gradle plugin version 3.0 or older. If you see an error like No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android, update your project file to [use plugin version 3.1 or newer]. You will also need to upgrade to Android Studio 3.1 or newer.

也就是说新版本的NDK与3.0及以前旧版的Android Gradle plugin插件不兼容

解决方案:

  1. 修改build.gradle中的Gradle Build Tool版本,改为3.1以及以上版本
  2. 将Android Studio升级到3.1以及以上版本
代码语言:javascript
复制
dependencies {
    classpath 'com.android.tools.build:gradle:3.2.0'
}
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018.12.26 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档