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

java.lang.UnsatisfiedLinkError: No implementation found for java.lang.Object ru.yandex.speechkit.BaseSpeechKit.native_getContext() #11

Open
kboykov-42 opened this issue Dec 24, 2020 · 0 comments

Comments

@kboykov-42
Copy link

kboykov-42 commented Dec 24, 2020

I have a problem with the native library, when initializing OnlineRecognizer. I did the implementation according to your example  from git.

sample project: https://github.com/kboykov-42/recognizer-sample

2020-12-24 12:15:04.387 17746-17746/? I/Zygote: seccomp disabled by setenforce 0
2020-12-24 12:15:04.391 17746-17746/? I/t.myapplicatio: Late-enabling -Xcheck:jni
2020-12-24 12:15:04.421 17746-17746/? E/t.myapplicatio: Unknown bits set in runtime_flags: 0x8000
2020-12-24 12:15:04.592 17746-17764/com.yandex.speechkit.myapplication W/t.myapplicatio: Long monitor contention with owner main (17746) at int android.os.Parcel.readInt()(Parcel.java:-1) waiters=0 in void android.app.ActivityThread.updatePendingConfiguration(android.content.res.Configuration) for 139ms
2020-12-24 12:15:04.711 17746-17746/com.yandex.speechkit.myapplication I/Perf: Connecting to perf service.
2020-12-24 12:15:04.724 17746-17746/com.yandex.speechkit.myapplication I/FeatureParser: can't find lavender.xml in assets/device_features/,it may be in /system/etc/device_features
2020-12-24 12:15:04.737 17746-17746/com.yandex.speechkit.myapplication E/libc: Access denied finding property "ro.vendor.df.effect.conflict"
2020-12-24 12:15:04.729 17746-17746/com.yandex.speechkit.myapplication W/t.myapplication: type=1400 audit(0.0:4925): avc: denied { read } for name="u:object_r:vendor_displayfeature_prop:s0" dev="tmpfs" ino=18308 scontext=u:r:untrusted_app:s0:c148,c257,c512,c768 tcontext=u:object_r:vendor_displayfeature_prop:s0 tclass=file permissive=0
2020-12-24 12:15:04.740 17746-17777/com.yandex.speechkit.myapplication E/Perf: Fail to get file list com.yandex.speechkit.myapplication
2020-12-24 12:15:04.740 17746-17777/com.yandex.speechkit.myapplication E/Perf: getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array
2020-12-24 12:15:04.741 17746-17777/com.yandex.speechkit.myapplication E/Perf: Fail to get file list com.yandex.speechkit.myapplication
2020-12-24 12:15:04.741 17746-17777/com.yandex.speechkit.myapplication E/Perf: getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array
2020-12-24 12:15:04.816 17746-17746/com.yandex.speechkit.myapplication D/View: com.yandex.speechkit.myapplication initForcedUseForceDark: 1
2020-12-24 12:15:05.002 17746-17746/com.yandex.speechkit.myapplication E/t.myapplicatio: No implementation found for java.lang.Object ru.yandex.speechkit.BaseSpeechKit.native_getContext() (tried Java_ru_yandex_speechkit_BaseSpeechKit_native_1getContext and Java_ru_yandex_speechkit_BaseSpeechKit_native_1getContext__)
2020-12-24 12:15:05.002 17746-17746/com.yandex.speechkit.myapplication D/AndroidRuntime: Shutting down VM
2020-12-24 12:15:05.003 17746-17746/com.yandex.speechkit.myapplication E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.yandex.speechkit.myapplication, PID: 17746
    java.lang.UnsatisfiedLinkError: No implementation found for java.lang.Object ru.yandex.speechkit.BaseSpeechKit.native_getContext() (tried Java_ru_yandex_speechkit_BaseSpeechKit_native_1getContext and Java_ru_yandex_speechkit_BaseSpeechKit_native_1getContext__)
        at ru.yandex.speechkit.BaseSpeechKit.native_getContext(Native Method)
        at ru.yandex.speechkit.BaseSpeechKit.getContext(BaseSpeechKit.java:206)
        at ru.yandex.speechkit.SpeechKit.getContext(SpeechKit.java:17)
        at ru.yandex.speechkit.OnlineRecognizer$Builder.<init>(OnlineRecognizer.java:497)
        at com.yandex.speechkit.myapplication.RecognizerActivity.onCreate(RecognizerActivity.java:57)
        at android.app.Activity.performCreate(Unknown Source:19)
        at android.app.Activity.performCreate(Unknown Source:1)
        at android.app.Instrumentation.callActivityOnCreate(Unknown Source:3)
        at android.app.ActivityThread.performLaunchActivity(Unknown Source:376)
        at android.app.ActivityThread.handleLaunchActivity(Unknown Source:47)
        at android.app.servertransaction.LaunchActivityItem.execute(Unknown Source:63)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(Unknown Source:77)
        at android.app.servertransaction.TransactionExecutor.execute(Unknown Source:73)
        at android.app.ActivityThread$H.handleMessage(Unknown Source:43)
        at android.os.Handler.dispatchMessage(Unknown Source:19)
        at android.os.Looper.loop(Unknown Source:242)
        at android.app.ActivityThread.main(Unknown Source:98)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(Unknown Source:11)
        at com.android.internal.os.ZygoteInit.main(Unknown Source:275)
2020-12-24 12:15:05.007 17746-17746/com.yandex.speechkit.myapplication E/MQSEventManagerDelegate: failed to get MQSService.
2020-12-24 12:15:05.007 17746-17746/com.yandex.speechkit.myapplication D/OOMEventManagerFK: checkEventAndDumpForJE: 0
2020-12-24 12:15:05.007 17746-17746/com.yandex.speechkit.myapplication E/MQSEventManagerDelegate: failed to get MQSService.
2020-12-24 12:15:12.720 17746-17776/com.yandex.speechkit.myapplication I/t.myapplicatio: ProcessProfilingInfo new_methods=0 is saved saved_to_disk=0 resolve_classes_delay=8000
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

1 participant