Skip to content

liboboe.so not found at runtime #1219

Description

@shanhassan06

Description

I’m getting the following runtime error when initializing react-native-audio-api:

java.lang.UnsatisfiedLinkError: dlopen failed: library "liboboe.so" not found:
needed by .../lib/arm64-v8a/libreact-native-audio-api.so

The project builds successfully, but the app fails when AudioAPIModule is initialized because libreact-native-audio-api.so cannot find its liboboe.so dependency.

Environment:

buildToolsVersion = "36.0.0"
minSdkVersion = 24
compileSdkVersion = 36
targetSdkVersion = 36
ndkVersion = "27.1.12297006"
kotlinVersion = "2.1.20"

react-native-audio-api: ^0.11.7

I have tried upgrading and downgrading react-native-audio-api, but the issue persists.

I have also:
Cleared the Gradle cache completely
Downgraded the project's Gradle version
Manually generated liboboe.so
Downgraded CMake to 3.22.1

Has anyone encountered this issue with liboboe.so not being packaged or resolved as a dependency of libreact-native-audio-api.so?

Steps to reproduce

  1. Create or clone a React Native Android project.
  2. Install react-native-audio-api version 0.11.7.
  3. Configure the Android project with:
  4. compileSdkVersion 36
  5. targetSdkVersion 36
  6. NDK 27.1.12297006
  7. CMake 3.22.1
  8. Build and install the Android app on an ARM64 device.
  9. Initialize/use react-native-audio-api.

Snack or a link to a repository

https://github.com/shanhassan06

React Native Audio API version

0.11.7

React Native version

0.83.6

Platforms

Android

JavaScript runtime

No response

Workflow

No response

Architecture

No response

Build type

No response

Device

No response

Device model

No response

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as expected or produces unexpected errors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions