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

UnsatisfiedLinkError #7

Closed
SnowcatSVK opened this issue Aug 8, 2018 · 11 comments
Closed

UnsatisfiedLinkError #7

SnowcatSVK opened this issue Aug 8, 2018 · 11 comments

Comments

@SnowcatSVK
Copy link

Hello,
While trying out your example app I have ran into a problem. On Android i get the UnsatisfiedLinkError
whole stacktrace:

com.cloudwebrtc.webrtcexample E/org.webrtc.Logging: NativeLibrary: Failed to load native library: jingle_peerconnection_so
    NativeLibrary: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.cloudwebrtc.webrtcexample-zASNzno6_zbJwbicSb0Dpg==/base.apk"],nativeLibraryDirectories=[/data/app/com.cloudwebrtc.webrtcexample-zASNzno6_zbJwbicSb0Dpg==/lib/x86_64, /system/fake-libs64, /data/app/com.cloudwebrtc.webrtcexample-zASNzno6_zbJwbicSb0Dpg==/base.apk!/lib/x86_64, /system/lib64]]] couldn't find "libjingle_peerconnection_so.so"

The app works great on iOS, but I cant get around this on Android. Every suggestion would help.

@kangshaojun
Copy link
Contributor

you need import android/libs/*.jar files

@SnowcatSVK
Copy link
Author

import exactly how? it is in the build.gradle of webrtc module if that is what you mean

@ghost
Copy link

ghost commented Aug 8, 2018 via email

@cloudwebrtc
Copy link
Member

@SnowcatSVK
From the log analysis, does not support the x86_64 architecture so, you are using the ARM architecture?
If not, you can apply doc/patchs/m63_patch_for_flutter_webrtc_plugin_v0.patch to recompile webrtc M63 to support x86_64 architecture.

@SnowcatSVK
Copy link
Author

@cloudwebrtc first i tried it on x86_64 emulator and when i saw the logs i have tried it on pixel 2, where i get the same error, only there it said it couldnt find armeabi_v8a, so then i guess i would have to recompile it for both x86_64 and armeabi_v8a?

@cloudwebrtc
Copy link
Member

@SnowcatSVK Yes, you can try to recompile it for both x86_64 and armeabi_v8a(arm64).
Normally, if you run the Android native app, armv7 library can run in the arm64 platform, and x86 library can run in x86_64 architecture. As far as I know flutter is still unable to run in x86 or x86_64 even arm64 platform, you need to exclude the errors caused by it.

@SnowcatSVK
Copy link
Author

ok then, i will try to recompile it and see if that helps, thank you for your time

@ghost
Copy link

ghost commented Aug 10, 2018

Could some notes about this eventually be added to the readme ? Ir even better a make file to see how to do this sort of ISA architecture shuffling ?
Just because its quite complex to know what to do on android to get it working in Sim and on real device.

@cloudwebrtc
Copy link
Member

Ok, I will update README.md and add x86_64 and arm64 architecture to the next commit.

@cloudwebrtc
Copy link
Member

@SnowcatSVK We have recompiled this native sdk, support armv7, arm64, x86, x86_64 on android, you can view the latest commit.

@SnowcatSVK
Copy link
Author

@cloudwebrtc Just tested it out and everything works rather nicely, thank you very much for your help

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

3 participants