Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

library "libwhisper.so" not found #77

Open
xclidongbo opened this issue Jul 12, 2023 · 1 comment
Open

library "libwhisper.so" not found #77

xclidongbo opened this issue Jul 12, 2023 · 1 comment
Labels
question Further information is requested

Comments

@xclidongbo
Copy link

xclidongbo commented Jul 12, 2023

Gradle:6.7.1
AGP: 4.2.2
ndk: 25.1.8937393

build success, but crash when running.

2023-07-12 17:27:21.351 19245-19275/com.sinosig.meoa.app E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #2
    Process: com.sinosig.meoa.app, PID: 19245
    java.lang.RuntimeException: An error occurred while executing doInBackground()
        at android.os.AsyncTask$4.done(AsyncTask.java:415)
        at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
        at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
        at java.util.concurrent.FutureTask.run(FutureTask.java:271)
        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:923)
     Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: library "libwhisper.so" not found

@jhen0409
Copy link
Member

Here's an simple way to check the libwhisper libraries are actually bundled in apk:

$ANDROID_HOME/cmdline-tools/latest/bin/apkanalyzer files list <PATH_RN_PROJECT>/android/app/build/outputs/apk/debug/app-deubg.apk | grep libwhisper

Expected result:

/lib/x86_64/libwhisper.so
/lib/x86/libwhisper.so
/lib/armeabi-v7a/libwhisper_vfpv4.so
/lib/armeabi-v7a/libwhisper.so
/lib/arm64-v8a/libwhisper_v8fp16_va.so
/lib/arm64-v8a/libwhisper.so

If you don't see anything by the grep filter or it missing on some platforms, you will need to check your root project build configuration, like packagingOptions.

@jhen0409 jhen0409 added the question Further information is requested label Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants