couldn't find "libjni.so
See original GitHub issueHey 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:
- Created 7 years ago
- Comments:14
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Awesome, man! It works! I just had to execute again:
Thanks a lot. This error was causing me headache for months
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 setANDROID_NDK_REPOSITORY
to~/tmp/ndk
.From buck side, we need to update the documentation and not allow to build an APK without NDK.