Even I had faced the same error using the NDK version 17.0.4754217. You can work around this issue by adding the following code in your gradle.build:
packagingOptions{
doNotStrip '*/mips/*.so'
}
Or
packagingOptions{
doNotStrip '*/mips/*.so'
doNotStrip '*/mips64/*.so'
}
If you are using the native code (C++), I recommend to add this code too:
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86' // <- only the supported ones
}
Make sure you won't embed any MIPS binary.
To know about Linux join the Linux training
Do check out the video below