Skip to content
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

Library libjingle_peerconnection_so.so not found #6

Closed
abh006 opened this issue Feb 17, 2024 · 3 comments
Closed

Library libjingle_peerconnection_so.so not found #6

abh006 opened this issue Feb 17, 2024 · 3 comments

Comments

@abh006
Copy link

abh006 commented Feb 17, 2024

I have been trying to implement a WebRTC client using the following dependencies in my build.gradle.

    // implementation 'com.dafruits:webrtc:121.0.0'
    implementation fileTree(dir: 'libs', include: ['*.aar'])

I tried both the options (using an aar file and using the version published in the repository). But I have been getting this error.

java.lang.UnsatisfiedLinkError: dlopen failed: library "libjingle_peerconnection_so.so" not found
	at java.lang.Runtime.loadLibrary0(Runtime.java:1082)
	at java.lang.Runtime.loadLibrary0(Runtime.java:1003)
	at java.lang.System.loadLibrary(System.java:1661)
	at org.webrtc.NativeLibrary$DefaultLoader.load(NativeLibrary.java:20)
	at org.webrtc.NativeLibrary.initialize(NativeLibrary.java:41)
	at org.webrtc.PeerConnectionFactory.initialize(PeerConnectionFactory.java:296)

Could you help me identify why this is happening?

@rno
Copy link
Owner

rno commented Mar 1, 2024

@abh006 , sorry, I didn't see the issue you created until now.

I just gave it a try with the AAR published on Github and I see the native library being added as expected.

image

What is the device architecture you're building for? The provded AAR only carries arm32, arm64, x86 and x64.

@abh006
Copy link
Author

abh006 commented Mar 2, 2024

Yeah, There is a change. I was building a JAR out of this. I was trying to implement WebRTC functionalities in the scrcpy (not actually part of the project). I will be running the JAR file using the adb shell.
I tried unzipping the JAR and the structure was similar. All these SO files are available the lib/ folder.

I'm not much experienced in this topic, but I think there is no platform specification while building the JAR. I could find an SO for 4 platforms inside that.

@rno
Copy link
Owner

rno commented Apr 6, 2024

@abh006 , did you figure out your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants