The default installed NDK doesn't seem to have the tools required to strip binaries that have been built with ARMEABI support, so it ends up packaging the whole library, which increases the built file size substantially.

I've found that installing the "NDK (Side by side)" tool from Android Studio -> Tools -> SDK Manager -> SDK Tools takes care of this warning and also reduces the built APK size, especially for React Native projects.


You can try using the following configuration in app/build.gradle.

android {    
    packagingOptions {
        // exclude ARMEABI native so file, ARMEABI has been removed in NDK r17.
        exclude "lib/armeabi/**"
    }
}

Remove (or make optional) MIPS native library #3504
Android-ABIs


Steps to install NDK (Side by side)

  • Open Android Studio
  • Click Configure/ Tools
    • Click SDK Manager
      • Click SDK Tools tab
        • Select below:
          • NDK (Side by side)
          • CMake
          • Android SDK Command-line Tools (latest)
        • Apply

NOTE: Android SDK Command-line Tools (latest) is not needed but I installed it so that I don't have to search for more solutions, today has been a lot of troubleshooting to run a new React Native app.

More info: https://developer.android.com/studio/projects/install-ndk