Skip to content

React Native apps fail to build since NDK update to r17 (due to removed support for ARMv5/armeabi) #19321

Closed
@sunweiyang

Description

@sunweiyang

According to release notes for NDK r17, which was released a couple days ago (https://developer.android.com/ndk/downloads/revision_history):

Support for ARMv5 (armeabi), MIPS, and MIPS64 has been removed. Attempting to build any of these ABIs will result in an error.

It seems like React Native still references armeabi-v7a across its codebase.

In the meantime, I had to use a workaround (explained in original issue at android/ndk#700) to get my React Native projects built for Android. (A true solution would remove all references to armeabi-v7a from the codebase, but this is something quick-and-dirty for the lazy or time-constrained.)

EDIT: For everyone's convenience, the workaround (macOS) is to replace the bare NDK r17 ~/Library/Android/sdk/ndk-bundle/toolchains/mips64el-linux-android-4.9/ and ~/Library/Android/sdk/ndk-bundle/toolchains/mipsel-linux-android-4.9/ directories with those of the old NDK r16.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions