Skip to content

Android 10 and below crash: __atomic_fetch_add_8 missing when loading libanoncreds.so (32‑bit) #33

@TsheringGyeltshenNDI

Description

@TsheringGyeltshenNDI

On Android 10 and below (32‑bit devices / x86 emulator), the app crashes when libanoncreds.so is loaded. Error indicates missing __atomic_fetch_add_8. Works on Android 11+ and 64‑bit devices.

Steps to Reproduce

Build React Native app using @hyperledger/anoncreds-react-native (version 0.4.0).
Run on Android 10 / API 29 x86 emulator or 32‑bit device (armeabi‑v7a).
App crashes on startup when anoncreds module loads.
Expected Behavior
App should start normally on Android 10 and below, including 32‑bit devices.

Actual Behavior
Crash at startup with UnsatisfiedLinkError:
_java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_atomic_fetch_add_8" referenced by ".../lib/x86/libanoncreds.so"

Environment
@hyperledger/anoncreds-react-native: 0.4.0
React Native: 0.82.0
Android: 10 (API 29)
Device/ABI: x86 emulator / armeabi‑v7a
NDK: 27.1.12297006

Logs

java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__atomic_fetch_add_8" referenced by ".../lib/x86/libanoncreds.so"
    at java.lang.Runtime.loadLibrary0(Runtime.java:1071)
    at java.lang.System.loadLibrary(System.java:1667)
    at org.hyperledger.anoncreds.AnoncredsModule.<clinit>(AnoncredsModule.java:21)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions