-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
JNA problems #1277
Comments
Please add jna to dependencies implementation 'net.java.dev.jna:jna:5.8.0@aar' reverting this change: |
This should be fixed in alphacep/vosk-android-demo@443b293 |
Thanks, that was fast! Unfortunately, it did not fix everything for me, I now cannot build instead due to a "duplicate class".
The same happens when using 5.8.0, as suggested in #1277 (thanks for the link, though, I was thinking I had seen this somewhere before!). |
Ok, I need to investigate more I suppose |
Thank you for looking into this! The suggestions I find online mostly consist of using gradle's "exclude group" feature
but this does not seem to work for |
check contents of apk file, does it include jna libraries? |
Thats strange, it seems to include some unrelated architectures, it should have armv7 instead, not darwin. How come so? |
Take a look inside https://repo1.maven.org/maven2/net/java/dev/jna/jna/5.13.0/jna-5.13.0.aar for example |
I don't know and I don't know how to find out. Maybe it has something to do with me working on a Mac? Something under the hood that gradle just "manages" without asking? |
@xekl I've just released 0.3.47 and pushed a dependency update here. Could you please update and check? |
Yes, it works now with the new version. Awesome, thanks for the troubleshooting! |
Ok, good |
Ill give it a try later tonight to see if it works for me aswell.
Den tors 16 mars 2023 12:55Nickolay V. Shmyrev ***@***.***>
skrev:
… Closed #1277 <#1277> as
completed.
—
Reply to this email directly, view it on GitHub
<#1277 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC36DMP2HDY6YTEEEKHFSOLW4L5TRANCNFSM6AAAAAAVCAQDIM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Where is the 0.3.47 version? Neither in release nor in tags... |
@zooyf in maven https://repo1.maven.org/maven2/com/alphacephei/vosk-android/0.3.47/ it will not help you likely if your problem about M1, I wrote you already |
I get this error directly after downloading the code trying to demo it.
E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.vosk.demo, PID: 29261
java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/android-x86/libjnidispatch.so) not found in resource path (.)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:962)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:922)
at com.sun.jna.Native.(Native.java:190)
at com.sun.jna.Native.register(Native.java:1641)
at org.vosk.LibVosk.(LibVosk.java:16)
at org.vosk.LibVosk.setLogLevel(LibVosk.java:70)
at org.vosk.demo.VoskActivity.onCreate(VoskActivity.java:72)
at android.app.Activity.performCreate(Activity.java:7994)
at android.app.Activity.performCreate(Activity.java:7978)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3422)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7656)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
The text was updated successfully, but these errors were encountered: