Skip to content

couldn't find "libjndcrash.so #1

@RomanDorofeyev

Description

@RomanDorofeyev

I'm trying to use jndcrash in my module but faced some issue when run application. It is more like building issue but anyway may be you coud give a hint how to solve it.

When using standart implementation then gradle does not includ any jndcrash files into build so I must put aar file to my libs folder implementation files("libs/jndcrash-libunwind-0.8.aar")

After building my module as aar library I can see jndcrash files included but I'm getting runtime exception :

E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.brandio.androidsample, PID: 17834
    java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.brandio.androidsample-SmjaZPIMVek_HLrynOlY5w==/base.apk"],nativeLibraryDirectories=[/data/app/com.brandio.androidsample-SmjaZPIMVek_HLrynOlY5w==/lib/x86, /system/lib, /system/product/lib]]] couldn't find "libjndcrash.so"
        at java.lang.Runtime.loadLibrary0(Runtime.java:1067)
        at java.lang.Runtime.loadLibrary0(Runtime.java:1007)
        at java.lang.System.loadLibrary(System.java:1667)
        at ru.ivanarh.jndcrash.NDCrash.<clinit>(SourceFile:197)
        at ru.ivanarh.jndcrash.NDCrash.initializeOutOfProcess(SourceFile:56)
        at com.brandio.ads.Controller.a(SourceFile:260)
        at com.brandio.ads.Controller.f(SourceFile:58)
        at com.brandio.ads.Controller$3.onSuccessResponse(SourceFile:362)
        at com.brandio.ads.ServiceClient$3.a(SourceFile:330)
        at com.brandio.ads.ServiceClient$3.onPostExecute(SourceFile:313)
        at android.os.AsyncTask.finish(AsyncTask.java:755)
        at android.os.AsyncTask.access$900(AsyncTask.java:192)
        at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:772)
        at android.os.Handler.dispatchMessage(Handler.java:107)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7356)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

However I can see the missed "libjndcrash.so" inside build https://prnt.sc/t63ve8
But looks like the correct structure missed during building or it requires some other installation.

May be any suggestion how to solve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions