Questions tagged [unsatisfiedlinkerror]

This Java error is observed when either the library wasn't found or the library exists but couldn't be opened.

Common reasons why people might encounter "library not found" exceptions:

  • The library doesn't exist or isn't accessible to the app.
  • The library isn't getting loaded.
  • The method isn't being found due to a name or signature mismatch.
  • The library wasn't built with the NDK. This can result in dependencies on functions or libraries that don't exist on the device.

Source:Why do I get UnsatisfiedLinkError?

496 questions
304
votes
14 answers

Eclipse cannot load SWT libraries

Every time I try to open Eclipse in Ubuntu 12.04 I get an Unsatisfied Link Error and it will not open. I have recently installed the java JDK and Android SDK, could this be the problem? I followed this tutorial. Here is the log info: !SESSION…
TomRichardson
  • 5,933
  • 5
  • 27
  • 30
112
votes
14 answers

System.loadLibrary(...) couldn't find native library in my case

I want to use a existing native library from another Android project, so I just copied the NDK built library (libcalculate.so) to my new Android project. In my new Android project I created a folder libs/armeabi/ and put libcalculate.so there. There…
user842225
  • 5,445
  • 15
  • 69
  • 119
42
votes
5 answers

Why do some Android phones cause our app to throw an java.lang.UnsatisfiedLinkError?

We're experiencing a java.lang.UnsatisfiedLinkError on some of the Android phones that are using our app in the market. Problem description: static { System.loadLibrary("stlport_shared"); // C++ STL System.loadLibrary("lib2"); …
35
votes
9 answers

tcnative-1.dll Can't load AMD 64-bit .dll on a IA 32-bit platform

I'm getting this error when I try to run tomcat: "java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\apache-tomcat-7.0.34\bin\tcnative-1.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform". However, I have the 64 bit JRE downloaded, and…
cmdkennedy
  • 741
  • 1
  • 6
  • 9
28
votes
7 answers

Reproducing and resolving Android java.lang.unsatisfiedLinkError locally

Together with a friend I have created an Android app to organize school grades. The app works fine on my device and on most user devices, however there is a crashing rate over 3 percent, mostly because of java.lang.UnsatisfiedLinkError and occurring…
24
votes
6 answers

OpenCV + Java = UnsatisfiedLinkError

I need capture a video stream from my USB webcam, for this i use Opencv 2.4.6 for developing in Java. I follow the steps listed in here I add the "C:\opencv\build\java\x64" dir to my System PATH and include the "opencv-246.jar" file into my…
efmoyano
  • 241
  • 1
  • 2
  • 3
23
votes
4 answers

"Undefined symbols" linker error with simple template class

Been away from C++ for a few years and am getting a linker error from the following code: Gene.h #ifndef GENE_H_INCLUDED #define GENE_H_INCLUDED template class Gene { public: T getValue(); void setValue(T value); void…
Ryan_IRL
  • 565
  • 1
  • 5
  • 15
17
votes
8 answers

Unsatisfied Link Error - OpenCV for Android Non-native

A few days ago I asked about an UnsatisfiedLinkError from running non-native OpenCV code. I thought the problem was solved after reinstalling Eclipse and closing/reopening all the packages, but it's back again after I put the OpenCV code into the…
1''
  • 26,823
  • 32
  • 143
  • 200
15
votes
1 answer

UnsatisfiedLinkError (Native method not found)

There is a block of code which is working fine on android 4.1.2 but not on 4.0.3, the crash log is of 4.0.3 I am getting UnsatisfiedLinkError Exception Please guide me thanks 02-22 12:57:09.319: D/dalvikvm(1312): Trying to load lib…
14
votes
7 answers

Android NDK: load_library: cannot locate srand

I have an android project where I use native code to do stuff with SIP (using libosip2 and libeXosip2). My native code is compiled together with the libraries' sources into one module. The code compiles just fine and the generated library has all…
Managarm
  • 1,070
  • 3
  • 12
  • 25
14
votes
3 answers

Android UnsatisfiedLinkError with OpenCV 2.4.2

just trying to do a simple openCV android program. Downloaded and installed OpenCV for Android following the instructions here and added the OpenCV Library 2.4.2 as a library project for my own android project like the instructions state. However…
Jason
  • 13,563
  • 15
  • 74
  • 125
12
votes
3 answers

Android NDK UnsatisfiedLinkError - a surprising reason

Update 8/7/2013: The problem is solved now, but the reason for the error was quite unexpected, all the usual suspects for such errors were eliminated on start, and I have learned something new. See my answer below. I'm pretty desperate here. Have…
gregko
  • 5,642
  • 9
  • 49
  • 76
11
votes
4 answers

No implementation found for void com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator()

I'm new to Unity, I'm trying to integrate Unity game(it has ARcore) into the native Android application. I'm able to launch unity in a new HelloWorld app but unable to launch in my real app(which has other modules). Note: When I'm building an…
DevT
  • 125
  • 1
  • 1
  • 7
11
votes
2 answers

Android studio: UnsatisfiedLinkError: findLibrary returned null - loading native library

I am making an app in Android Studio which uses two libraries. A native library with an Android wrapper and a jar-library. For some reason, the native library won't load if the other jar-library is compiled into the project. So if I run the app with…
Skywalker10
  • 939
  • 3
  • 9
  • 21
10
votes
6 answers

java.lang.UnsatisfiedLinkError: Cannot load 64-bit SWT libraries on 32-bit JVM in Windows x86 machine

I've just started using swt (windows x86_x64 compatible version). When I run a sample code snippet in Eclipse, I am getting the following error... Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot load 64-bit SWT libraries on 32-bit…
santhan
  • 101
  • 1
  • 1
  • 3
1
2 3
33 34