1. 程式人生 > >解決“Error:No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android”...

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

問題:

最近SDK Tools中安裝了NDK,於是在最近的專案中的就出現瞭如圖所示的錯誤:mipsel-linux-android的缺失


10186693-d8fa4330bb2d1765.png error

解決方法:

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


10186693-945b69c87ea38b72.png image.png

(2)複製NDK地址到本地電腦中進行查詢,E:\Android\Sdk\ndk-bundle,找到toolchains資料夾並開啟。


10186693-7a221725ea4ed422.png image.png

(3)進入Android Studio中文社群,在TOOLS導航欄下找到NDK,找到相應的版本進行下載。

10186693-6d1472b679805f1d.png NDK

(4)將檔案進行下載,解壓。


10186693-0c56eab4b9840df3.png image.png

(5)解壓縮後,開啟toolchains資料夾,找到錯誤提示中缺失的檔名。


10186693-ffd5d9094c723c80.png 丟失的檔案

(6)將此資料夾進行復制貼上到ndk所在目錄的toolschain檔案中。


10186693-8443403e2a2f25c9.png image.png

(7)回到Android Studio中,點選AS中的更新按鈕進行更新,問題就哈皮滴解決啦~


10186693-dd36eb0f5d987faf.png 更新結果