Step-by-step:
1) Open the page with old NDK versions:
https://developer.android.com/ndk/downloads/older_releases
2) Agree the Terms:
3) Download the older version of NDK
(for example 16b):
4) Open your toolchains
directory.
5) Transfer files that you need from toolchains
folder of downloaded zip-file to your toolchains
folder:
6) Rebuild the Project:
UPD 30 Sep 2018:
I used Android NDK Revision r16b for fix this error in my own case. So I present the example with this version.
But it's better to use the Android NDK, Revision r17c (June 2018). It is the last one, supporting mips (reasonable reccomendation from Weekend's comment).