When I get release build and install APK to same android device, execution of same code cause following crash. After crash once when I open app about second later app crash with same error.
Fatal Exception: java.lang.UnsatisfiedLinkError: Can't obtain peer field ID for class com.sun.jna.Pointer
at com.sun.jna.Native.initIDs(SourceFile)
at com.sun.jna.Native.<clinit>(:333)
at com.sun.jna.Native.H()
at org.vosk.LibVosk.<clinit>(:4)
at org.vosk.LibVosk.vosk_model_new(SourceFile)
at org.vosk.Model.<init>()
at l9.i.h(:2)
at l9.i.b()
at l9.f.call(:2)
at l9.e.g()
at l9.e.b()
at l9.b.run(:8)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
Versions:
Build Platform: Android, Android Version 10
On local build there is no problem. I can download Speak recognition model and use as expected with no issue like. Code is like following:
When I get release build and install APK to same android device, execution of same code cause following crash. After crash once when I open app about second later app crash with same error.
Android Manifest Permissions:
Waiting for response.