question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

couldn't find "libjni.so

See original GitHub issue

Hey guys

I did all the steps on the Getting Started But when I try to install the app I get this error. Probably something wrong on my machine. How do I fix it?

02-12 15:49:37.105: E/ERROR(4775): java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.facebook.buck.demo-1/base.apk"],nativeLibraryDirectories=[/data/app/com.facebook.buck.demo-1/lib/x86, /system/lib, /vendor/lib]]] couldn't find "libjni.so" 02-12 15:49:37.105: E/ERROR(4775): at com.facebook.buck.demo.Hello.<init>(Hello.java:17) 02-12 15:49:37.105: E/ERROR(4775): at com.facebook.buck.demo.App.onCreate(App.java:24)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14

github_iconTop GitHub Comments

2reactions
aajn88commented, Jun 15, 2017

Awesome, man! It works! I just had to execute again:

$ buck kill && rm -rf buck-out
$ buck build demo_app_android

Thanks a lot. This error was causing me headache for months

1reaction
styurincommented, Jun 15, 2017

Ok, it looks like you don’t have Android NDK installed.

You need to install Android NDK from here (version 10e) and set ANDROID_NDK_REPOSITORY to the location of the unpacked NDK (see buckconfig section for more info).

For example, if you unpack NDK to ~/tmp/ndk (so that there is a directory ~/tmp/ndk/android-ndk-r10e), you need to set ANDROID_NDK_REPOSITORY to ~/tmp/ndk.

From buck side, we need to update the documentation and not allow to build an APK without NDK.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Buck - java.lang.UnsatisfiedLinkError: couldn't find "libjni.so ...
1 Answer 1 ... Repeating the answer from github: You need to install Android NDK from here (version 10e) and set ANDROID_NDK_REPOSITORY to...
Read more >
JNI tips | Android NDK
JNI is the Java Native Interface. It defines a way for the bytecode that Android compiles from managed code (written in the Java...
Read more >
java.lang.UnsatisfiedLinkError: no splashscreen in java.library ...
Error on running Could not start Burp: java.lang.UnsatisfiedLinkError: no splashscreen in java.library.path. Muhammad | Last updated: Aug 07, ...
Read more >
How to Handle the UnsatisfiedLinkError Runtime Error in Java
The Java java.lang.UnsatisfiedLinkError is thrown when a program uses a native libaray but is unable to find it at runtime for some reason....
Read more >
Unsatisfied Link Error and missing .so files when starting Eclipse
sudo apt-get install libswt-gtk-3-jni libswt-gtk-3-java. And sudo cp /usr/lib/jni/libswt-*3740.so ~/.swt/lib/linux/x86_64/.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found