No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android解决办法

当Studio版本升级到3.4以上,从SDK Manager下载的NDK不在支持老的项目了就会报错
No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android解决办法
提示的意思就是找不到mips64el-linux-android,这是在NDK r18b之前的版本才会有这个文件夹,r18b更新日志有一句话

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.

解决办法就是把Gradle和build:gradle升级到最新的就可以支持最新的NDK了。

另一种解决办法

对于老项目来说最好不要轻易升级,那我们就去DNK官网下载一个老版本的NDK离线包,解压出来单独把mips64el-linux-android拷出来放到新的NDK E:\sdk目录\ndk-bundle\toolchains(这里去找自己的ndk目录)目录下,从新编译就OK了。

NDK下载目录
注意要下载r18b之前的包