Skip to content
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

Service not registered: android.speech.SpeechRecognizer$Connection@85fc805 #29

Open
dinhhoabk95 opened this issue Aug 29, 2019 · 0 comments

Comments

@dinhhoabk95
Copy link

I using nativescript-vue 2. with nativescript 5.4 and build app on android 5.1. when i this.speechRecognition.startListening({ onResult: res => { console.log("res", res) }, onError: err => { console.log('1111'); } })
and speak any thing to micro but console.log in code not have any thing in terninal.
Beside, when i use stopListening or hide app back home, i receive error
System.err: com.tns.NativeScriptException: System.err: Calling js method run failed System.err: Error: java.lang.IllegalArgumentException: Service not registered: android.speech.SpeechRecognizer$Connection@85fc805 System.err: android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1141) System.err: android.app.ContextImpl.unbindService(ContextImpl.java:2254) System.err: android.content.ContextWrapper.unbindService(ContextWrapper.java:572) System.err: android.speech.SpeechRecognizer.destroy(SpeechRecognizer.java:408) System.err: com.tns.Runtime.callJSMethodNative(Native Method) System.err: com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1203) System.err: com.tns.Runtime.callJSMethodImpl(Runtime.java:1083) System.err: com.tns.Runtime.callJSMethod(Runtime.java:1070) System.err: com.tns.Runtime.callJSMethod(Runtime.java:1050) System.err: com.tns.Runtime.callJSMethod(Runtime.java:1042) System.err: com.tns.gen.java.lang.Runnable.run(Runnable.java:17) System.err: android.os.Handler.handleCallback(Handler.java:739) System.err: android.os.Handler.dispatchMessage(Handler.java:95) System.err: android.os.Looper.loop(Looper.java:145) System.err: android.app.ActivityThread.main(ActivityThread.java:6917) System.err: java.lang.reflect.Method.invoke(Native Method) System.err: java.lang.reflect.Method.invoke(Method.java:372) System.err: com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404) System.err: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199) System.err: File: "file:///data/data/com.dinhhoabkhn.dictionary/files/app/vendor.js, line: 17086, column: 27 System.err: StackTrace: System.err: Frame: function:'run', file:'file:///data/data/com.dinhhoabkhn.dictionary/files/app/vendor.js', line: 17086, column: 28 System.err: at com.tns.Runtime.callJSMethodNative(Native Method) System.err: at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1203) System.err: at com.tns.Runtime.callJSMethodImpl(Runtime.java:1083) System.err: at com.tns.Runtime.callJSMethod(Runtime.java:1070) System.err: at com.tns.Runtime.callJSMethod(Runtime.java:1050) System.err: at com.tns.Runtime.callJSMethod(Runtime.java:1042) System.err: at com.tns.gen.java.lang.Runnable.run(Runnable.java:17) System.err: at android.os.Handler.handleCallback(Handler.java:739) System.err: at android.os.Handler.dispatchMessage(Handler.java:95) System.err: at android.os.Looper.loop(Looper.java:145) System.err: at android.app.ActivityThread.main(ActivityThread.java:6917) System.err: at java.lang.reflect.Method.invoke(Native Method) System.err: at java.lang.reflect.Method.invoke(Method.java:372) System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404) System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199) System.err: Caused by: java.lang.IllegalArgumentException: Service not registered: android.speech.SpeechRecognizer$Connection@85fc805 System.err: at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1141) System.err: at android.app.ContextImpl.unbindService(ContextImpl.java:2254) System.err: at android.content.ContextWrapper.unbindService(ContextWrapper.java:572) System.err: at android.speech.SpeechRecognizer.destroy(SpeechRecognizer.java:408) System.err: ... 15 more ActivityManager: cleanUpApplicationRecord -- 1256
It took me quite a while to find the error. I hope someone helps me solve my problem soon

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

No branches or pull requests

1 participant