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.


rafael

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

  • My app works perfectly on Android under version 6, but on Android 6 this error appear when the app starts: It seems that si a problem in libraries or something like this. Device: Huawei P8 {code:java} [ERROR] : linker: readlink('/proc/self/fd/21') failed: Permission denied [fd=21] [INFO] : TiApplication: (main) [0,0] checkpoint, app created. [INFO] : TiApplication: (main) [116,116] Titanium 5.2.2 (2016/03/28 14:12 b685ddb) [ERROR] : linker: warning: unable to get realpath for the library "/system/lib/hw/gralloc.hi3635.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/21') failed: Permission denied [fd=21] [ERROR] : linker: warning: unable to get realpath for the library "libion.so". Will use given name. [ERROR] : HAL: load: id=gralloc != hmi->id=gralloc [INFO] : DatabaseHelper: No value in database for platform key: 'unique_machine_id' returning supplied default '' [INFO] : DatabaseHelper: No value in database for platform key: 'hardware_machine_id' returning supplied default '' [INFO] : TiApplication: (main) [153,269] Titanium Javascript runtime: v8 [ERROR] : linker: readlink('/proc/self/fd/26') failed: Permission denied [fd=26] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/es.epi.emporda-1/lib/arm/libstlport_shared.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/26') failed: Permission denied [fd=26] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/es.epi.emporda-1/lib/arm/libkroll-v8.so". Will use given name. [INFO] : HwCust: Constructor found for class android.app.HwCustHwWallpaperManagerImpl [INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null [WARN] : V8Object: (KrollRuntimeThread) [64,64] Runtime disposed, cannot set property 'userAgent' [WARN] : TiTempFileHelper: (main) [17,81] The external temp directory doesn't exist, skipping cleanup [ERROR] : linker: readlink('/proc/self/fd/26') failed: Permission denied [fd=26] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/es.epi.emporda-1/lib/arm/libanalytics.google.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/26') failed: Permission denied [fd=26] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/es.epi.emporda-1/lib/arm/libti.map.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/26') failed: Permission denied [fd=26] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/es.epi.emporda-1/lib/arm/libes.epi.comscore.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/26') failed: Permission denied [fd=26] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/es.epi.emporda-1/lib/arm/libcom.rkam.swiperefreshlayout.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/26') failed: Permission denied [fd=26] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/es.epi.emporda-1/lib/arm/libfacebook.so". Will use given name. [ERROR] : TiApplication: (KrollRuntimeThread) [48,129] Sending event: exception on thread: KrollRuntimeThread msg:java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/es.epi.emporda-1/lib/arm/libfacebook.so: has text relocations; Titanium 5.2.2,2016/03/28 14:12,b685ddb [ERROR] : TiApplication: java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/es.epi.emporda-1/lib/arm/libfacebook.so: has text relocations [ERROR] : TiApplication: at java.lang.Runtime.loadLibrary(Runtime.java:384) [ERROR] : TiApplication: at java.lang.System.loadLibrary(System.java:1086) [ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:132) [ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:99) [ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:205) [ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:114) {code}
    via by Anna,
  • My app works perfectly on Android under version 6, but on Android 6 this error appear when the app starts: It seems that si a problem in libraries or something like this. Device: Huawei P8 {code:java} [ERROR] : linker: readlink('/proc/self/fd/21') failed: Permission denied [fd=21] [INFO] : TiApplication: (main) [0,0] checkpoint, app created. [INFO] : TiApplication: (main) [116,116] Titanium 5.2.2 (2016/03/28 14:12 b685ddb) [ERROR] : linker: warning: unable to get realpath for the library "/system/lib/hw/gralloc.hi3635.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/21') failed: Permission denied [fd=21] [ERROR] : linker: warning: unable to get realpath for the library "libion.so". Will use given name. [ERROR] : HAL: load: id=gralloc != hmi->id=gralloc [INFO] : DatabaseHelper: No value in database for platform key: 'unique_machine_id' returning supplied default '' [INFO] : DatabaseHelper: No value in database for platform key: 'hardware_machine_id' returning supplied default '' [INFO] : TiApplication: (main) [153,269] Titanium Javascript runtime: v8 [ERROR] : linker: readlink('/proc/self/fd/26') failed: Permission denied [fd=26] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/es.epi.emporda-1/lib/arm/libstlport_shared.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/26') failed: Permission denied [fd=26] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/es.epi.emporda-1/lib/arm/libkroll-v8.so". Will use given name. [INFO] : HwCust: Constructor found for class android.app.HwCustHwWallpaperManagerImpl [INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null [WARN] : V8Object: (KrollRuntimeThread) [64,64] Runtime disposed, cannot set property 'userAgent' [WARN] : TiTempFileHelper: (main) [17,81] The external temp directory doesn't exist, skipping cleanup [ERROR] : linker: readlink('/proc/self/fd/26') failed: Permission denied [fd=26] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/es.epi.emporda-1/lib/arm/libanalytics.google.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/26') failed: Permission denied [fd=26] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/es.epi.emporda-1/lib/arm/libti.map.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/26') failed: Permission denied [fd=26] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/es.epi.emporda-1/lib/arm/libes.epi.comscore.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/26') failed: Permission denied [fd=26] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/es.epi.emporda-1/lib/arm/libcom.rkam.swiperefreshlayout.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/26') failed: Permission denied [fd=26] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/es.epi.emporda-1/lib/arm/libfacebook.so". Will use given name. [ERROR] : TiApplication: (KrollRuntimeThread) [48,129] Sending event: exception on thread: KrollRuntimeThread msg:java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/es.epi.emporda-1/lib/arm/libfacebook.so: has text relocations; Titanium 5.2.2,2016/03/28 14:12,b685ddb [ERROR] : TiApplication: java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/es.epi.emporda-1/lib/arm/libfacebook.so: has text relocations [ERROR] : TiApplication: at java.lang.Runtime.loadLibrary(Runtime.java:384) [ERROR] : TiApplication: at java.lang.System.loadLibrary(System.java:1086) [ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:132) [ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:99) [ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:205) [ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:114) {code}
    via by Anna,
  • Hello, I'm having this error on Android 6 permissions or modules, I don't know. I can't know what module or permission need the app because the libraries are form Titanium. This is my error: {code:java} [ERROR] : linker: readlink('/proc/self/fd/22') failed: Permission denied [fd=22] [INFO] : TiApplication: (main) [0,0] checkpoint, app created. [INFO] : TiApplication: (main) [81,81] Titanium 5.4.0 (2016/04/25 22:10 63d6351) [ERROR] : linker: warning: unable to get realpath for the library "/system/lib/hw/gralloc.hi3635.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/22') failed: Permission denied [fd=22] [INFO] : DatabaseHelper: No value in database for platform key: 'unique_machine_id' returning supplied default '' [ERROR] : linker: warning: unable to get realpath for the library "libion.so". Will use given name. [ERROR] : HAL: load: id=gralloc != hmi->id=gralloc [INFO] : DatabaseHelper: No value in database for platform key: 'hardware_machine_id' returning supplied default '' [INFO] : TiApplication: (main) [383,464] Titanium Javascript runtime: v8 [ERROR] : linker: readlink('/proc/self/fd/26') failed: Permission denied [fd=26] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/es.renr.manager-1/lib/arm/libstlport_shared.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/26') failed: Permission denied [fd=26] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/es.renr.manager-1/lib/arm/libkroll-v8.so". Will use given name. [INFO] : HwCust: Constructor found for class android.app.HwCustHwWallpaperManagerImpl [INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null [WARN] : V8Object: (KrollRuntimeThread) [83,83] Runtime disposed, cannot set property 'userAgent' [ERROR] : linker: readlink('/proc/self/fd/26') failed: Permission denied [fd=26] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/es.renr.manager-1/lib/arm/libti.sq.so". Will use given name. [ERROR] : TiApplication: (KrollRuntimeThread) [39,122] Sending event: exception on thread: KrollRuntimeThread msg:java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/es.renr.manager-1/lib/arm/libti.sq.so: has text relocations; Titanium 5.4.0,2016/04/25 22:10,63d6351 [ERROR] : TiApplication: java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/es.renr.manager-1/lib/arm/libti.sq.so: has text relocations [ERROR] : TiApplication: at java.lang.Runtime.loadLibrary(Runtime.java:384) [ERROR] : TiApplication: at java.lang.System.loadLibrary(System.java:1086) [ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:132) [ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:99) [ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:205) [ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:114) {code} I'm cheking this permissions, but the error appear BEFORE this code is exectued: {code:java} exports.checkPermissions = function(){ var permissionsToRequest = []; // check WRITE_EXTERNAL_STORAGE permission var storagePermission = "android.permission.WRITE_EXTERNAL_STORAGE"; var hasStoragePermission = Ti.Android.hasPermission(storagePermission); if(!hasStoragePermission){ permissionsToRequest.push(storagePermission); } // check RECORD_AUDIO permission var audioPermission = "android.permission.RECORD_AUDIO"; var hasAudioPermission = Ti.Android.hasPermission(audioPermission); if(!hasAudioPermission){ permissionsToRequest.push(audioPermission); } // check ACCESS_NETWORK_STATE permission var networkPermission = "android.permission.ACCESS_NETWORK_STATE"; var hasNetworkPermission = Ti.Android.hasPermission(networkPermission); if(!hasNetworkPermission){ permissionsToRequest.push(networkPermission); } // check INTERNET permission var internetPermission = "android.permission.INTERNET"; var hasInternetPermission = Ti.Android.hasPermission(internetPermission); if(!hasInternetPermission){ permissionsToRequest.push(internetPermission); } // check ACCESS_COARSE_LOCATION permission var locationPermission = "android.permission.ACCESS_COARSE_LOCATION"; var hasLocationPermission = Ti.Android.hasPermission(locationPermission); if(!hasLocationPermission){ permissionsToRequest.push(locationPermission); } // check ACCESS_FINE_LOCATION permission var location2Permission = "android.permission.ACCESS_FINE_LOCATION"; var hasLocation2Permission = Ti.Android.hasPermission(location2Permission); if(!hasLocation2Permission){ permissionsToRequest.push(location2Permission); } // request permission Ti.Android.requestPermissions(permissionsToRequest, function(e) { if (e.success) { Ti.API.info("SUCCESS"); } else { Ti.API.info("ERROR: " + e.error); } }); }; {code}
    via by Anna,
  • Runtime Error
    via GitHub by asleson
    ,
  • Not working anymore.
    via GitHub by deckameron
    ,
    • java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/es.epi.emporda-1/lib/arm/libfacebook.so: has text relocations at java.lang.Runtime.loadLibrary(Runtime.java:384) at java.lang.System.loadLibrary(System.java:1086) at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:132) at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:99) at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:205) at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:114)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown User
    4 times, last one,
    Unknown visitor1 times, last one,
    Reich
    2 times, last one,
    271 more bugmates