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

Introduction

とあるサンプルを動かそうと、DLしたファイルをAndroidStudio3.2.1でインポートしたところ

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

といわれました。

Why ?

\Android\sdk\ndk-bundle\toolchains

の中に、mips64el-linux-android-x.xが無いのが原因の模様
Android SDKのNDKを最新にするも存在しません(18.1.5063045)

で、
stackoverflowの以下を全部読めばそれが全てなのですが、
stackoverflow.com

また同様の事が起きた時の為に、メモを残します。

Conclusion

簡単に言えばサンプルが古いのが原因 でした。

actually the mips support is dropped in NDK r17.

https://github.com/android-ndk/ndk/wiki/Changelog-r17

ということで、mips64el-linux-android-x.xが無いのは2018/11/06現在StableなAndroidStudio3.2.1とNDK18.1.5063045を使っている限り正常な状態のようです。

How to

というわけで、それだけではコンパイルが出来ないので無理やりmips64el-linux-android-4.9

\Android\sdk\ndk-bundle\toolchains

にコピーして、コンパイルを通します。

dropped in NDK r17.

なので、
https://developer.android.com/ndk/downloads/older_releases
ここから、Android NDK, Revision 16b (December 2017)をDLし、必要なファイルだけをコピーします。

これで、先へ進めます。
ちなみに、それだけ古い(と言ってもせいぜい1年?)サンプルだと、Gradleを新しくしたり、compileimplementationにしたりと、色々ありました。