详细的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所在的绝对路径>
比如我的配置如下:
ndk.dir=D\:\\Android\\android-ndk-r12b
或者通过File --> Project Structure ... --> SDK Location 如下图所示:
---- The End.