I am getting following error when trying to create PeerConnectionFactory object in android.

448 views
Skip to first unread message

Akshay Shah

unread,
Mar 28, 2017, 4:07:08 AM3/28/17
to discuss-webrtc


W/org.webrtc.Logging: Failed to load jingle_peerconnection_so: 

                                                                           java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.myapp.myapp-1/base.apk"],nativeLibraryDirectories=[/data/app/com.myapp.myapp-1/lib/x86, /vendor/lib, /system/lib]]] couldn't find "libjingle_peerconnection_so.so"

                                                                               at java.lang.Runtime.loadLibrary(Runtime.java:367)

                                                                               at java.lang.System.loadLibrary(System.java:1076)

                                                                               at org.webrtc.Logging.<clinit>(Logging.java:28)

                                                                               at org.webrtc.voiceengine.WebRtcAudioUtils.setWebRtcBasedAutomaticGainControl(WebRtcAudioUtils.java:69)

                                                                               at com.myapp.myapp.PeerConnectionClient.createPeerConnectionFactoryInternal(PeerConnectionClient.java:421)

                                                                               at com.myapp.myapp.PeerConnectionClient.access$300(PeerConnectionClient.java:66)

                                                                               at com.myapp.myapp.PeerConnectionClient$1.run(PeerConnectionClient.java:315)

                                                                               at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)

                                                                               at java.util.concurrent.FutureTask.run(FutureTask.java:237)

                                                                               at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)

                                                                               at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)

                                                                               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)

                                                                               at java.lang.Thread.run(Thread.java:818)

W/org.webrtc.Logging: WebRtcAudioUtils: setWebRtcBasedAutomaticGainControl() is deprecated


I am using latest from https://chromium.googlesource.com/external/webrtc/+log/branch-heads/58 (i.e. rev 13be671)


Appreciate your help!

Sami Kalliomäki

unread,
Mar 28, 2017, 4:09:52 AM3/28/17
to discuss-webrtc
You are most likely missing the so file indicated by the error. You should include it in your project.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/5f556266-3ed8-4c78-86f9-9f88bc06c3c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Akshay Shah

unread,
Mar 28, 2017, 4:50:35 AM3/28/17
to discuss-webrtc
I have that in my app. Verified it.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.

Sami Kalliomäki

unread,
Mar 28, 2017, 4:53:21 AM3/28/17
to discuss-webrtc
From the log I can see this is a x86 based phone. Please verify you have also included version compiled for x86 architecture.

To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/39e1d181-0e89-4c91-ac25-d6284abef1b3%40googlegroups.com.

Akshay Shah

unread,
Mar 29, 2017, 2:17:47 PM3/29/17
to discuss-webrtc
Verified. Following is the output of the file command:

Akshays-MacBook-Pro-2:~ akshayshah$ file libjingle_peerconnection_so.so 

libjingle_peerconnection_so.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /system/bin/linker, BuildID[sha1]=277d11bd9352082fd485d11d24d4803443931f09, stripped

Akshay Shah

unread,
Apr 7, 2017, 4:20:07 AM4/7/17
to discuss-webrtc
Fixed the problem.
For anyone else visiting this, the issue was that the .so files were under folders name "sim", "sim64", "arm" and "arm64".
Renaming the folders to "x86","x86_64", "armeabi-v7a", "arm64-v8a" did the trick.
Reply all
Reply to author
Forward
0 new messages