Android Studio 之 gradle build 错误:Error:No toolchains found in the NDK toolchains folder

详细的gradle build错误如下:

Error:No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

Consult IDE log for more details (Help | Show Log)

 

原因是:配置了无效的NDK路径。

可以直接修改local.properties文件,在其中添加:

ndk.dir=

比如我的配置如下:

ndk.dir=D\:\\Android\\android-ndk-r12b

或者通过File  -->  Project Structure ...  --> SDK Location 如下图所示:

Android Studio 之 gradle build 错误:Error:No toolchains found in the NDK toolchains folder_第1张图片

 

---- The End.

你可能感兴趣的:(Android,Gradle)