方法1 copy ndk旧版本的toolchains
参考下面的内容
No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
今天把ndk升级了,但之前的串口通信的例子却无法编译了,一直报错
No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
后来google了下,查到原因
https://github.com/google/filament/issues/15
是google在ndk r17版本删除了mips相关的toolchains文件。
我们要做的要么是修改编译文件,要么就把缺少的mips文件从旧版本复制回来,由于串口程序不是我写的,所以我选择后者,从同事的电脑上把旧版本的mips相关文件复制了回来,为了保证以后再出现类似问题,我将这个文件上传到云盘。
下载链接
链接:https://pan.baidu.com/s/1z-gsTNzHoHqFnw_kfDssFg
提取码:yg09
解压后放到目录 ndk-bundle/toolchains/ 目录下就好
方法2 升级 Android Plugin version 大于等于3.1
No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
- 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.
升级 Android Plugin version 大于等于3.1, 而且 Android Studio 要升级到 大于等于 3.1
https://android.googlesource.com/platform/ndk/+show/master/CHANGELOG.md