android quickBlox Video calling code force close o

2019-09-08 08:48发布

问题:

Hello all i need to integrate video and audio call using QuickBlox

for that i am using This link

i am able to login with user name and password

But when user clickes on receive video call they get error and force close app on both the device

the error is

02-03 18:04:15.726: E/AndroidRuntime(3104): FATAL EXCEPTION: Thread-39405
02-03 18:04:15.726: E/AndroidRuntime(3104): Process: com.quickblox.videochatsample, PID: 3104
02-03 18:04:15.726: E/AndroidRuntime(3104): java.lang.UnsatisfiedLinkError: Couldn't load ilbc-codec from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.quickblox.videochatsample-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.quickblox.videochatsample-2, /vendor/lib, /system/lib]]]: findLibrary returned null
02-03 18:04:15.726: E/AndroidRuntime(3104):     at java.lang.Runtime.loadLibrary(Runtime.java:365)
02-03 18:04:15.726: E/AndroidRuntime(3104):     at java.lang.System.loadLibrary(System.java:526)
02-03 18:04:15.726: E/AndroidRuntime(3104):     at com.googlecode.androidilbc.Codec.<init>(Codec.java:16)
02-03 18:04:15.726: E/AndroidRuntime(3104):     at com.googlecode.androidilbc.Codec.<clinit>(Codec.java:5)
02-03 18:04:15.726: E/AndroidRuntime(3104):     at com.quickblox.videochat.core.objects.AudioRecorder$AudioRecorderRunnable.run(AudioRecorder.java:196)
02-03 18:04:15.726: E/AndroidRuntime(3104):     at java.lang.Thread.run(Thread.java:841)

回答1:

Error indicates that lib files are missing. There are .SO files for codec which should be in the project.

As you mentioned QuickBlox link, copy these files into your libs/armeabi folder