解决“Error:No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android”...

问题:

最近SDK Tools中安装了NDK,于是在最近的项目中的就出现了如图所示的错误:mipsel-linux-android的缺失


解决“Error:No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android”...
error

解决方法:

(1)找到NDK的根目录:
File/Project Structure/SDK Location/Android NDK location


解决“Error:No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android”...
image.png

(2)复制NDK地址到本地电脑中进行查找,E:\Android\Sdk\ndk-bundle,找到toolchains文件夹并打开。


解决“Error:No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android”...
image.png

(3)进入Android Studio中文社区,在TOOLS导航栏下找到NDK,找到相应的版本进行下载。

解决“Error:No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android”...
NDK

(4)将文件进行下载,解压。


解决“Error:No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android”...
image.png

(5)解压缩后,打开toolchains文件夹,找到错误提示中缺失的文件名。


解决“Error:No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android”...
丢失的文件

(6)将此文件夹进行复制粘贴到ndk所在目录的toolschain文件中。


解决“Error:No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android”...
image.png

(7)回到Android Studio中,点击AS中的更新按钮进行更新,问题就哈皮滴解决啦~


解决“Error:No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android”...
更新结果