deprecated-yandex-speechkit-android icon indicating copy to clipboard operation
deprecated-yandex-speechkit-android copied to clipboard

UnsatisfiedLinkError at java.lang.Runtime.loadLibrary

Open timurgilfanov opened this issue 10 years ago • 2 comments

Seen on few devices at Google Play Developer Console with different stack traces:

android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1225)
at android.app.Activity.performStart(Activity.java:5076)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2328)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2391)
at android.app.ActivityThread.access$600(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1335)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:155)
at android.app.ActivityThread.main(ActivityThread.java:5511)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:796)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.UnsatisfiedLinkError: Couldn't load YandexSpeechKitJni: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:365)
at java.lang.System.loadLibrary(System.java:535)
at ru.yandex.speechkit.SpeechKit.<clinit>(Unknown Source)
... 24 more

and second:

java.lang.UnsatisfiedLinkError: Couldn't load YandexSpeechKitJni from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.reactivephone-1.apk"],nativeLibraryDirectories=[/data/app-lib/org.reactivephone-1, /vendor/lib, /system/lib]]]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:355)
at java.lang.System.loadLibrary(System.java:525)
at ru.yandex.speechkit.SpeechKit.<clinit>(Unknown Source)
at o.bkt.a(Unknown Source)
at android.support.v4.app.Fragment.b(Unknown Source)
at o.w.a(Unknown Source)
at o.w.a(Unknown Source)
at o.j.run(Unknown Source)
at o.w.d(Unknown Source)
at android.support.v4.app.FragmentActivity.onStart(Unknown Source)
at org.reactivephone.activities.ActivityWithAnimation.onStart(Unknown Source)
at org.reactivephone.activities.ActivityWithFlurry.onStart(Unknown Source)
at org.reactivephone.ui.MainActivity.onStart(Unknown Source)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1171)
at android.app.Activity.performStart(Activity.java:5143)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2239)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2316)
at android.app.ActivityThread.access$600(ActivityThread.java:150)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1298)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:213)
at android.app.ActivityThread.main(ActivityThread.java:5225)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:741)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
at dalvik.system.NativeStart.main(Native Method)

timurgilfanov avatar Mar 08 '14 13:03 timurgilfanov

It looks like System.loadLibrary() cannot find libYandexSpeechKitJni.so for the required architecture. Please check if the library is in .apk archive. For now SpeechKit works on armeabi, armeabi-v7a and x86 platforms.

agpanin avatar Mar 08 '14 14:03 agpanin

For the second case user inform us that reinstall of application solve the problem. Users device is Xperia SP (C5303) with ARMv7 processor. Another user have simultaneous crash on Xperia V (LT25i). Whats wrong with Xperia? :D

timurgilfanov avatar Mar 10 '14 16:03 timurgilfanov