java.lang.UnsatisfiedLinkError

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
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.


rafaelrafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • I'm building a project with this .AAR: https://github.com/PaoloRotolo/AppIntro Problem is, this project needs appcompatV7 underneath it. If i try and build my project with the appcompatV7 .JAR file, i get the following error when the dexer is run: {code:java} [ERROR] Failed to run dexer: [ERROR] [ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v7/app/ActionBar; [ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v7/app/ActionBar$DisplayOptions; [ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v7/app/ActionBar$LayoutParams; [ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v7/app/ActionBar$NavigationMode; [ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v7/app/ActionBar$OnMenuVisibilityListener; [ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v7/app/ActionBar$OnNavigationListener; [ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v7/app/ActionBar$Tab; [ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v7/app/ActionBar$TabListener; [ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v7/app/ActionBarActivity; [ERROR] [ERROR] UNEXPECTED TOP-LEVEL EXCEPTION: [ERROR] java.lang.RuntimeException: Translation has been interrupted [ERROR] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:608) [ERROR] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311) [ERROR] at com.android.dx.command.dexer.Main.run(Main.java:277) [ERROR] at com.android.dx.command.dexer.Main.main(Main.java:245) [ERROR] at com.android.dx.command.Main.main(Main.java:106) [ERROR] Caused by: java.lang.InterruptedException: Too many errors [ERROR] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:600) [ERROR] ... 4 more {code} I guess that's happening because in the *Packaging application* part of the build process you can see that the *android.support.v7.appcompat* lib is already included there by default, but the thing is... Hyperloop doesn't know / doesn't have access to it without without the Hyperloop wrappers that are generated beneath */build/hyperloop/js*. {code:java} INFO] Packaging application: /Users/rodolfo/Documents/Development/android-sdk-macosx/build-tools/23.0.3/aapt "package" "-f" "-m" "-J" "/Users/rodolfo/Documents/Workspace/loopmodules-appintro/build/android/gen" "-M" "/Users/rodolfo/Documents/Workspace/loopmodules-appintro/build/android/AndroidManifest.xml" "-A" "/Users/rodolfo/Documents/Workspace/loopmodules-appintro/build/android/bin/assets" "-S" "/Users/rodolfo/Documents/Workspace/loopmodules-appintro/build/android/res" "-I" "/Users/rodolfo/Documents/Development/android-sdk-macosx/platforms/android-23/android.jar" "-F" "/Users/rodolfo/Documents/Workspace/loopmodules-appintro/build/android/bin/app.ap_" "--auto-add-overlay" "--extra-packages" "ti.modules.titanium.ui:android.support.v7.appcompat:android.support.v7.cardview:com.github.paolorotolo.appintro" "-S" "/var/folders/6g/x4xgj0gn17z2nhk3v4n01mhw0000gn/T/116627-19422-1re5chr/res" "-S" "/var/folders/6g/x4xgj0gn17z2nhk3v4n01mhw0000gn/T/116627-19422-6esb5c/res" "-S" "/var/folders/6g/x4xgj0gn17z2nhk3v4n01mhw0000gn/T/116627-19422-jzgxx0/res" "-S" "/Users/rodolfo/Documents/Workspace/loopmodules-appintro/build/hyperloop/android/appintro-4.0.0/res" {code} Kiat asked me to try running the app with the latest 6.0.0 build, but the app won't even open: {code:java} [ERROR] TiApplication: (main) [33,356] Sending event: exception on thread: main msg:java.lang.UnsatisfiedLinkError: dlopen failed: library "libstlport_shared.so" not found; Titanium 6.0.0,2016/07/26 20:28,undefined [ERROR] TiApplication: java.lang.UnsatisfiedLinkError: dlopen failed: library "libstlport_shared.so" not found [ERROR] TiApplication: at java.lang.Runtime.loadLibrary(Runtime.java:371) [ERROR] TiApplication: at java.lang.System.loadLibrary(System.java:988) [ERROR] TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:151) [ERROR] TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:118) [ERROR] TiApplication: at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:205) [ERROR] TiApplication: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:114) [ERROR] TiApplication: at org.appcelerator.kroll.KrollRuntime.init(KrollRuntime.java:136) [ERROR] TiApplication: at com.loopmodules.appintro.LoopmodulesAppintroApplication.onCreate(LoopmodulesAppintroApplication.java:46) [ERROR] TiApplication: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012) [ERROR] TiApplication: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4553) [ERROR] TiApplication: at android.app.ActivityThread.access$1500(ActivityThread.java:151) [ERROR] TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364) [ERROR] TiApplication: at android.os.Handler.dispatchMessage(Handler.java:102) [ERROR] TiApplication: at android.os.Looper.loop(Looper.java:135) [ERROR] TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5254) [ERROR] TiApplication: at java.lang.reflect.Method.invoke(Native Method) [ERROR] TiApplication: at java.lang.reflect.Method.invoke(Method.java:372) [ERROR] TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) [ERROR] TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) [ERROR] E/NetworkScheduler.SR( 3015): Invalid parameter app [ERROR] E/NetworkScheduler.SR( 3015): Invalid package name : Perhaps you didn't include a PendingIntent in the extras? [ERROR] Error: invalid session at makeError (/Users/rodolfo/.appcelerator/install/5.4.0-31/package/node_modules/appc-platform-sdk/lib/auth.js:87:14) at /Users/rodolfo/.appcelerator/install/5.4.0-31/package/node_modules/appc-platform-sdk/lib/auth.js:256:21 at Request._callback (/Users/rodolfo/.appcelerator/install/5.4.0-31/package/node_modules/appc-platform-sdk/lib/index.js:354:11) at Request.self.callback (/Users/rodolfo/.appcelerator/install/5.4.0-31/package/node_modules/request/request.js:187:22) at emitTwo (events.js:87:13) at Request.emit (events.js:172:7) at Request.<anonymous> (/Users/rodolfo/.appcelerator/install/5.4.0-31/package/node_modules/request/request.js:1044:10) at emitOne (events.js:77:13) at Request.emit (events.js:169:7) at IncomingMessage.<anonymous> (/Users/rodolfo/.appcelerator/install/5.4.0-31/package/node_modules/request/request.js:965:12) at emitNone (events.js:72:20) at IncomingMessage.emit (events.js:166:7) at endReadableNT (_stream_readable.js:921:12) --------------------------------------------- at Request.init (/Users/rodolfo/.appcelerator/install/5.4.0-31/package/node_modules/request/request.js:190:10) at new Request (/Users/rodolfo/.appcelerator/install/5.4.0-31/package/node_modules/request/request.js:129:8) at request (/Users/rodolfo/.appcelerator/install/5.4.0-31/package/node_modules/request/index.js:55:10) at Function.get (/Users/rodolfo/.appcelerator/install/5.4.0-31/package/node_modules/request/index.js:63:12) at _createRequest (/Users/rodolfo/.appcelerator/install/5.4.0-31/package/node_modules/appc-platform-sdk/lib/index.js:429:39) at Function.AppC.createRequest (/Users/rodolfo/.appcelerator/install/5.4.0-31/package/node_modules/appc-platform-sdk/lib/index.js:387:9) at /Users/rodolfo/.appcelerator/install/5.4.0-31/package/node_modules/appc-platform-sdk/lib/auth.js:251:8 at /Users/rodolfo/.appcelerator/install/5.4.0-31/package/node_modules/appc-platform-sdk/node_modules/async/lib/async.js:251:17 at /Users/rodolfo/.appcelerator/install/5.4.0-31/package/node_modules/appc-platform-sdk/node_modules/async/lib/async.js:154:25 at /Users/rodolfo/.appcelerator/install/5.4.0-31/package/node_modules/appc-platform-sdk/node_modules/async/lib/async.js:248:21 at /Users/rodolfo/.appcelerator/install/5.4.0-31/package/node_modules/appc-platform-sdk/node_modules/async/lib/async.js:612:34 at /Users/rodolfo/.appcelerator/install/5.4.0-31/package/node_modules/appc-platform-sdk/lib/auth.js:110:3 at next (/Users/rodolfo/.appcelerator/install/5.4.0-31/package/node_modules/tough-cookie/lib/cookie.js:994:9) at MemoryCookieStore.putCookie (/Users/rodolfo/.appcelerator/install/5.4.0-31/package/node_modules/tough-cookie/lib/memstore.js:118:3) at withCookie (/Users/rodolfo/.appcelerator/install/5.4.0-31/package/node_modules/tough-cookie/lib/cookie.js:1013:13) --------------------------------------------- at Object.setImmediate (/Users/rodolfo/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.v20160726202757/node_modules/async/lib/async.js:194:9) at /Users/rodolfo/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.v20160726202757/node_modules/async/lib/async.js:272:35 at /Users/rodolfo/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.v20160726202757/node_modules/async/lib/async.js:44:16 at /Users/rodolfo/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.v20160726202757/node_modules/async/lib/async.js:723:17 at /Users/rodolfo/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.v20160726202757/node_modules/async/lib/async.js:167:37 at /Users/rodolfo/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.v20160726202757/android/cli/hooks/run.js:400:7 at /Users/rodolfo/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.v20160726202757/node_modules/async/lib/async.js:718:13 at iterate (/Users/rodolfo/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.v20160726202757/node_modules/async/lib/async.js:262:13) at /Users/rodolfo/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.v20160726202757/node_modules/async/lib/async.js:274:29 at /Users/rodolfo/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.v20160726202757/node_modules/async/lib/async.js:44:16 at /Users/rodolfo/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.v20160726202757/node_modules/async/lib/async.js:723:17 at /Users/rodolfo/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.v20160726202757/node_modules/async/lib/async.js:167:37 at /Users/rodolfo/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.v20160726202757/node_modules/async/lib/async.js:52:16 at /Users/rodolfo/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.v20160726202757/node_modules/async/lib/async.js:269:32 at /Users/rodolfo/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.v20160726202757/node_modules/async/lib/async.js:44:16 {code}
    via by Rodolfo Perottoni,
  • The HTTPS module does not work on the SDK 6.X anymore. It needs to be recompiled with the latest NDK. {code:java} [ERROR] TiApplication: (main) [46,254] Sending event: exception on thread: main msg:java.lang.UnsatisfiedLinkError: dlopen failed: library "libstlport_shared.so" not found; Titanium 6.0.0,2016/08/24 15:30,undefined [ERROR] TiApplication: java.lang.UnsatisfiedLinkError: dlopen failed: library "libstlport_shared.so" not found [ERROR] TiApplication: at java.lang.Runtime.loadLibrary(Runtime.java:371) [ERROR] TiApplication: at java.lang.System.loadLibrary(System.java:988) [ERROR] TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:151) [ERROR] TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:118) [ERROR] TiApplication: at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:205) [ERROR] TiApplication: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:114) [ERROR] TiApplication: at org.appcelerator.kroll.KrollRuntime.init(KrollRuntime.java:136) [ERROR] TiApplication: at au.com.MotorMouth.MotorMouth.AppAndroidApplication.onCreate(AppAndroidApplication.java:55) [ERROR] TiApplication: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012) [ERROR] TiApplication: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4553) [ERROR] TiApplication: at android.app.ActivityThread.access$1500(ActivityThread.java:151) [ERROR] TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364) [ERROR] TiApplication: at android.os.Handler.dispatchMessage(Handler.java:102) [ERROR] TiApplication: at android.os.Looper.loop(Looper.java:135) [ERROR] TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5254) [ERROR] TiApplication: at java.lang.reflect.Method.invoke(Native Method) [ERROR] TiApplication: at java.lang.reflect.Method.invoke(Method.java:372) [ERROR] TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) [ERROR] TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) {code}
    via by Rodolfo Perottoni,
  • The HTTPS module does not work on the SDK 6.X anymore. It needs to be recompiled with the latest NDK. {code:java} [ERROR] TiApplication: (main) [46,254] Sending event: exception on thread: main msg:java.lang.UnsatisfiedLinkError: dlopen failed: library "libstlport_shared.so" not found; Titanium 6.0.0,2016/08/24 15:30,undefined [ERROR] TiApplication: java.lang.UnsatisfiedLinkError: dlopen failed: library "libstlport_shared.so" not found [ERROR] TiApplication: at java.lang.Runtime.loadLibrary(Runtime.java:371) [ERROR] TiApplication: at java.lang.System.loadLibrary(System.java:988) [ERROR] TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:151) [ERROR] TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:118) [ERROR] TiApplication: at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:205) [ERROR] TiApplication: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:114) [ERROR] TiApplication: at org.appcelerator.kroll.KrollRuntime.init(KrollRuntime.java:136) [ERROR] TiApplication: at au.com.MotorMouth.MotorMouth.AppAndroidApplication.onCreate(AppAndroidApplication.java:55) [ERROR] TiApplication: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012) [ERROR] TiApplication: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4553) [ERROR] TiApplication: at android.app.ActivityThread.access$1500(ActivityThread.java:151) [ERROR] TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364) [ERROR] TiApplication: at android.os.Handler.dispatchMessage(Handler.java:102) [ERROR] TiApplication: at android.os.Looper.loop(Looper.java:135) [ERROR] TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5254) [ERROR] TiApplication: at java.lang.reflect.Method.invoke(Native Method) [ERROR] TiApplication: at java.lang.reflect.Method.invoke(Method.java:372) [ERROR] TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) [ERROR] TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) {code}
    via by Rodolfo Perottoni,
  • Launch error on Android
    via GitHub by caspahouzer
    ,
  • Titanium android app not working on Tablets
    via Stack Overflow by john
    ,
  • *Description* When trying to build to Android Emulator using Hyperloop 2.1.1, errors appear, and build does not complete. *Steps to reproduce* 1. Create a new Alloy app; make sure hyperloop is enabled 2. Build to Emulator *Actual Result* A series of errors are thrown. (see below). *Expected Result* App should build to emulator. There should be no errors. With Hyperloop 2.1.0, no errors were thrown. Error details: {code} [INFO] : MultiDex: VM has multidex support, MultiDex support library is disabled. [ERROR] : TiApplication: (main) [970,1050] Sending event: exception on thread: main msg:java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZN8titanium10JavaObject21unreferenceJavaObjectEP8_jobject" referenced by "/data/app/com.appc.smoke1-1/lib/x86/libhyperloop.so"...; Titanium 6.1.0,2017/05/26 15:24,undefined [ERROR] : TiApplication: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZN8titanium10JavaObject21unreferenceJavaObjectEP8_jobject" referenced by "/data/app/com.appc.smoke1-1/lib/x86/libhyperloop.so"... [ERROR] : TiApplication: at java.lang.Runtime.loadLibrary(Runtime.java:372) [ERROR] : TiApplication: at java.lang.System.loadLibrary(System.java:1076) [ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:151) [ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:118) [ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:205) [ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:114) [ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime.init(KrollRuntime.java:136) [ERROR] : TiApplication: at com.appc.smoke1.Smoke1Application.onCreate(Smoke1Application.java:49) [ERROR] : TiApplication: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013) [ERROR] : TiApplication: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4707) [ERROR] : TiApplication: at android.app.ActivityThread.-wrap1(ActivityThread.java) [ERROR] : TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:102) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:148) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5417) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Native Method) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) {code}
    via by Abir Mukherjee,
  • Load gif lib error
    via GitHub by duguguiyu
    ,
    • java.lang.UnsatisfiedLinkError: dlopen failed: library "libstlport_shared.so" not found at java.lang.Runtime.loadLibrary(Runtime.java:371) at java.lang.System.loadLibrary(System.java:988) at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:151) at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:118) at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:205) at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:114) at org.appcelerator.kroll.KrollRuntime.init(KrollRuntime.java:136) at com.loopmodules.appintro.LoopmodulesAppintroApplication.onCreate(LoopmodulesAppintroApplication.java:46) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4553) at android.app.ActivityThread.access$1500(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

    Users with the same issue

    franky lifranky li
    4 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown UserUnknown User
    4 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    ReichReich
    2 times, last one,
    271 more bugmates