Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

UnsatisfiedLinkError at java.lang.Runtime.loadLibrary #4

Open
timurgilfanov opened this issue Mar 8, 2014 · 2 comments
Open

UnsatisfiedLinkError at java.lang.Runtime.loadLibrary #4

timurgilfanov opened this issue Mar 8, 2014 · 2 comments

Comments

@timurgilfanov
Copy link

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)
@agpanin
Copy link
Contributor

agpanin commented Mar 8, 2014

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.

@timurgilfanov
Copy link
Author

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

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

No branches or pull requests

2 participants