java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "cmsg_nxthdr" referenced by "libpcap.so"...

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

This happens sometimes when Android fails to load the necessary libraries when you install an app. Try reinstalling it or telling your client to reinstall it, as it seems to correctly install the libraries and fixes the problem.

Solutions on the web

via Stack Overflow by CasinoAl
, 1 year ago
dlopen failed: /data/app/arw.apps.barcode-1/lib/arm/libiconv.so: has text relocations
via GitHub by AntonGorbach
, 5 months ago
Cannot load library: soinfo_link_image(linker.cpp:1673): could not load library "libogg.so" needed by "libshout.so"; caused by load_library(linker.cpp:771): library "libogg.so" not found
via Stack Overflow by Damian Drewulski
, 2 years ago
Cannot load library: link_image[1891]: 149 could not load needed library '../../lib/libopencv_gpu.so' for 'libopencv_stitching.so' (load_library[1093]: Library '../../lib/libopencv_gpu.so' not found)
via Stack Overflow by BST Kaal
, 1 year ago
dlopen failed: cannot locate symbol "BN_nist_mod_521" referenced by "/data/app/xx.xx-1/lib/arm/libsip.so"...
via Stack Overflow by Zibiksior
, 4 months ago
dlopen failed: cannot locate symbol "getifaddrs" referenced by "/data/app/com.futuremind.omili-1/lib/arm/libpjsua2.so"...
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "cmsg_nxthdr" referenced by "libpcap.so"...
at java.lang.Runtime.loadLibrary(Runtime.java:364)
at java.lang.System.loadLibrary(System.java:526)
at com.example.lpcap.MainActivity.(MainActivity.java:37)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1208)
at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 day ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.