-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dlopen failed: library "libbinder.so" not found #4
Comments
Can you confirm that the same issue happen with the official sample: https://github.com/androidthings/sample-nativepio ? |
@proppy Refer to googlearchive/tango-examples-c#117 libandroidthings link libbinder , but libbinder is non-NDK platform libraries. I don't know if you've thought about it |
@Pillar1989 are you trying to statically link libandroidthings? It should be linked dynamically https://github.com/androidthings/sample-nativepio/blob/master/blink/src/main/cpp/CMakeLists.txt#L41, as when deployed your APK will use the one coming from the system image. |
Yes,I copied this CMakeList.txt. I still wonder how native libandroidthings get around the non-ndk rule. |
We use native-libandroidthings in our project. but it print error "dlopen failed: library "libbinder.so" not found"
06-20 01:35:45.560 29084-29084/com.seeed.baozhu.mraa D/AndroidRuntime: Shutting down VM
06-20 01:35:45.567 29084-29084/com.seeed.baozhu.mraa E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.seeed.baozhu.mraa, PID: 29084
java.lang.UnsatisfiedLinkError: dlopen failed: library "libbinder.so" not found
at java.lang.Runtime.loadLibrary0(Runtime.java:1016)
at java.lang.System.loadLibrary(System.java:1657)
at com.seeed.baozhu.mraa.MainActivity.(MainActivity.java:18)
at java.lang.Class.newInstance(Native Method)
at android.app.Instrumentation.newActivity(Instrumentation.java:1174)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2669)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
The text was updated successfully, but these errors were encountered: