语音识别一直崩溃
D佬甲A 发布于2016-12 浏览:2872 回复:6
0
收藏

我使用的服务是:语音识别

调用的接口是:语音识别

参数设置情况:Demo

开发平台和机型:Android

SDK版本号:2.2.1027

代码或日志截图(上传截图能帮助您更快解决问题):

                                                   java.lang.UnsatisfiedLinkError: No implementation found for void com.baidu.speech.core.BDSSDKLoader.SetLogLevel(int) (tried Java_com_baidu_speech_core_BDSSDKLoader_SetLogLevel and Java_com_baidu_speech_core_BDSSDKLoader_SetLogLevel__I)

                                                       at com.baidu.speech.core.BDSSDKLoader.SetLogLevel(Native Method)

                                                       at com.baidu.speech.core.BDSSDKLoader.(BDSSDKLoader.java:53)

                                                       at com.baidu.speech.asr.AsrControl.(AsrControl.java:157)

                                                       at com.baidu.speech.asr.EventManagerAsr.(EventManagerAsr.java:30)

                                                       at com.baidu.speech.EventManagerFactory.create(EventManagerFactory.java:17)

                                                       at com.baidu.speech.VoiceRecognitionService.onCreate(VoiceRecognitionService.java:58)

                                                       at android.app.ActivityThread.handleCreateService(ActivityThread.java:2940)

                                                       at android.app.ActivityThread.access$1800(ActivityThread.java:158)

                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1530)

                                                       at android.os.Handler.dispatchMessage(Handler.java:102)

                                                       at android.os.Looper.loop(Looper.java:135)

                                                       at android.app.ActivityThread.main(ActivityThread.java:5506)

                                                       at java.lang.reflect.Method.invoke(Native Method)

                                                       at java.lang.reflect.Method.invoke(Method.java:372)

                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:952)

                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747)

复现步骤、现象及其他描述:

点击语音识别就崩溃

收藏
点赞
0
个赞
共6条回复 最后由用户已被禁言回复于2022-04
#6c5812回复于2017-03

可以尝试将armeabi直接拷贝到其它目录试试

0
#7c5812回复于2017-03

可以尝试将armeabi直接拷贝到其它目录试试

0
#5黯然星海回复于2017-02

c5812:

您好,我怀疑是so集成问题,请确保libs下只集成armeabi一个目录

回复c5812:你好,但是其他项目所需的第三方so文件,要求不止有一个armeabi怎么办?

0
#4c5812回复于2016-12

您好,请保证libs下只有armeabi或armeabi-v7a这一个子目录,然后再试下,谢谢

0
#3D佬甲A回复于2016-12

c5812:

您好,我怀疑是so集成问题,请确保libs下只集成armeabi一个目录

回复c5812:您好,我是只集成armeabi一个目录,华为手机上也不好使了!看log好像没找到.so文件,请您帮看一下!谢谢您的回复支持!


12-26 22:43:58.303 17888-17888/? W/System.err: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.indetravel.lvcheng-1/base.apk"],nativeLibraryDirectories=[/data/app/com.indetravel.lvcheng-1/lib/arm, /data/app/com.indetravel.lvcheng-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]] couldn't find "libBDSpeechDecoder_V1.so"

12-26 22:43:58.304 17888-17888/? W/System.err:     at java.lang.Runtime.loadLibrary(Runtime.java:379)

12-26 22:43:58.304 17888-17888/? W/System.err:     at java.lang.System.loadLibrary(System.java:1086)

12-26 22:43:58.304 17888-17888/? W/System.err:     at com.baidu.speech.core.BDSSDKLoader.(BDSSDKLoader.java:33)

12-26 22:43:58.304 17888-17888/? W/System.err:     at com.baidu.speech.asr.AsrControl.(AsrControl.java:157)

12-26 22:43:58.304 17888-17888/? W/System.err:     at com.baidu.speech.asr.EventManagerAsr.(EventManagerAsr.java:30)

12-26 22:43:58.304 17888-17888/? W/System.err:     at com.baidu.speech.EventManagerFactory.create(EventManagerFactory.java:17)

12-26 22:43:58.304 17888-17888/? W/System.err:     at com.baidu.speech.VoiceRecognitionService.onCreate(VoiceRecognitionService.java:58)

12-26 22:43:58.304 17888-17888/? W/System.err:     at android.app.ActivityThread.handleCreateService(ActivityThread.java:2940)

12-26 22:43:58.304 17888-17888/? W/System.err:     at android.app.ActivityThread.access$1900(ActivityThread.java:168)

12-26 22:43:58.304 17888-17888/? W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1462)

12-26 22:43:58.304 17888-17888/? W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)

12-26 22:43:58.304 17888-17888/? W/System.err:     at android.os.Looper.loop(Looper.java:150)

12-26 22:43:58.304 17888-17888/? W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5665)

12-26 22:43:58.304 17888-17888/? W/System.err:     at java.lang.reflect.Method.invoke(Native Method)

12-26 22:43:58.304 17888-17888/? W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)

12-26 22:43:58.304 17888-17888/? W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:689)

12-26 22:43:58.305 17888-17888/? W/System.err: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.indetravel.lvcheng-1/base.apk"],nativeLibraryDirectories=[/data/app/com.indetravel.lvcheng-1/lib/arm, /data/app/com.indetravel.lvcheng-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]] couldn't find "libbd_etts.so"

12-26 22:43:58.305 17888-17888/? W/System.err:     at java.lang.Runtime.loadLibrary(Runtime.java:379)

12-26 22:43:58.305 17888-17888/? W/System.err:     at java.lang.System.loadLibrary(System.java:1086)

12-26 22:43:58.305 17888-17888/? W/System.err:     at com.baidu.speech.core.BDSSDKLoader.(BDSSDKLoader.java:38)

12-26 22:43:58.305 17888-17888/? W/System.err:     at com.baidu.speech.asr.AsrControl.(AsrControl.java:157)

12-26 22:43:58.305 17888-17888/? W/System.err:     at com.baidu.speech.asr.EventManagerAsr.(EventManagerAsr.java:30)

12-26 22:43:58.305 17888-17888/? W/System.err:     at com.baidu.speech.EventManagerFactory.create(EventManagerFactory.java:17)

12-26 22:43:58.305 17888-17888/? W/System.err:     at com.baidu.speech.VoiceRecognitionService.onCreate(VoiceRecognitionService.java:58)

12-26 22:43:58.305 17888-17888/? W/System.err:     at android.app.ActivityThread.handleCreateService(ActivityThread.java:2940)

12-26 22:43:58.305 17888-17888/? W/System.err:     at android.app.ActivityThread.access$1900(ActivityThread.java:168)

12-26 22:43:58.305 17888-17888/? W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1462)

12-26 22:43:58.305 17888-17888/? W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)

12-26 22:43:58.305 17888-17888/? W/System.err:     at android.os.Looper.loop(Looper.java:150)

12-26 22:43:58.305 17888-17888/? W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5665)

12-26 22:43:58.305 17888-17888/? W/System.err:     at java.lang.reflect.Method.invoke(Native Method)

12-26 22:43:58.305 17888-17888/? W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)

12-26 22:43:58.305 17888-17888/? W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:689)

12-26 22:43:58.306 17888-17888/? W/System.err: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.indetravel.lvcheng-1/base.apk"],nativeLibraryDirectories=[/data/app/com.indetravel.lvcheng-1/lib/arm, /data/app/com.indetravel.lvcheng-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]] couldn't find "libbdEASRAndroid.so"

12-26 22:43:58.306 17888-17888/? W/System.err:     at java.lang.Runtime.loadLibrary(Runtime.java:379)

12-26 22:43:58.307 17888-17888/? W/System.err:     at java.lang.System.loadLibrary(System.java:1086)

12-26 22:43:58.307 17888-17888/? W/System.err:     at com.baidu.speech.core.BDSSDKLoader.(BDSSDKLoader.java:43)

12-26 22:43:58.307 17888-17888/? W/System.err:     at com.baidu.speech.asr.AsrControl.(AsrControl.java:157)

12-26 22:43:58.307 17888-17888/? W/System.err:     at com.baidu.speech.asr.EventManagerAsr.(EventManagerAsr.java:30)

12-26 22:43:58.307 17888-17888/? W/System.err:     at com.baidu.speech.EventManagerFactory.create(EventManagerFactory.java:17)

12-26 22:43:58.307 17888-17888/? W/System.err:     at com.baidu.speech.VoiceRecognitionService.onCreate(VoiceRecognitionService.java:58)

12-26 22:43:58.307 17888-17888/? W/System.err:     at android.app.ActivityThread.handleCreateService(ActivityThread.java:2940)

12-26 22:43:58.307 17888-17888/? W/System.err:     at android.app.ActivityThread.access$1900(ActivityThread.java:168)

12-26 22:43:58.307 17888-17888/? W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1462)

12-26 22:43:58.307 17888-17888/? W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)

12-26 22:43:58.307 17888-17888/? W/System.err:     at android.os.Looper.loop(Looper.java:150)

12-26 22:43:58.307 17888-17888/? W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5665)

12-26 22:43:58.307 17888-17888/? W/System.err:     at java.lang.reflect.Method.invoke(Native Method)

12-26 22:43:58.307 17888-17888/? W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)

12-26 22:43:58.307 17888-17888/? W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:689)

12-26 22:43:58.308 17888-17888/? W/System.err: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.indetravel.lvcheng-1/base.apk"],nativeLibraryDirectories=[/data/app/com.indetravel.lvcheng-1/lib/arm, /data/app/com.indetravel.lvcheng-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]] couldn't find "libBaiduSpeechSDK.so"

12-26 22:43:58.308 17888-17888/? W/System.err:     at java.lang.Runtime.loadLibrary(Runtime.java:379)

12-26 22:43:58.308 17888-17888/? W/System.err:     at java.lang.System.loadLibrary(System.java:1086)

12-26 22:43:58.308 17888-17888/? W/System.err:     at com.baidu.speech.core.BDSSDKLoader.(BDSSDKLoader.java:48)

12-26 22:43:58.308 17888-17888/? W/System.err:     at com.baidu.speech.asr.AsrControl.(AsrControl.java:157)

12-26 22:43:58.308 17888-17888/? W/System.err:     at com.baidu.speech.asr.EventManagerAsr.(EventManagerAsr.java:30)

12-26 22:43:58.308 17888-17888/? W/System.err:     at com.baidu.speech.EventManagerFactory.create(EventManagerFactory.java:17)

12-26 22:43:58.308 17888-17888/? W/System.err:     at com.baidu.speech.VoiceRecognitionService.onCreate(VoiceRecognitionService.java:58)

12-26 22:43:58.308 17888-17888/? W/System.err:     at android.app.ActivityThread.handleCreateService(ActivityThread.java:2940)

12-26 22:43:58.308 17888-17888/? W/System.err:     at android.app.ActivityThread.access$1900(ActivityThread.java:168)

12-26 22:43:58.308 17888-17888/? W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1462)

12-26 22:43:58.308 17888-17888/? W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)

12-26 22:43:58.308 17888-17888/? W/System.err:     at android.os.Looper.loop(Looper.java:150)

12-26 22:43:58.308 17888-17888/? W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5665)

12-26 22:43:58.308 17888-17888/? W/System.err:     at java.lang.reflect.Method.invoke(Native Method)

12-26 22:43:58.308 17888-17888/? W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)

12-26 22:43:58.308 17888-17888/? W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:689)

12-26 22:43:58.309 17888-17888/? E/art: No implementation found for void com.baidu.speech.core.BDSSDKLoader.SetLogLevel(int) (tried Java_com_baidu_speech_core_BDSSDKLoader_SetLogLevel and Java_com_baidu_speech_core_BDSSDKLoader_SetLogLevel__I)

12-26 22:43:58.346 17888-18691/? I/System: core_booster, getBoosterConfig = false

12-26 22:43:58.406 17888-18691/? I/System: core_booster, getBoosterConfig = false

12-26 22:43:58.507 967-2010/? I/SendBroadcastPermission: action:android.intent.action.SIG_STR, mPermissionType:0

12-26 22:43:58.510 11046-11249/? I/amsnl: csr

12-26 22:43:58.511 11046-11249/? I/amsnl: t:false, fl: false, p: 2147483647000, ce: true, we: true

12-26 22:43:58.514 11046-11249/? I/amsnl: m1: false

12-26 22:43:58.514 1470-1525/? I/HwMobileSignalController: subId:0 phoneType:1 networktype:13 targetClass:3 masterLevel:2 slaveLevel:-1

12-26 22:43:58.516 11046-11249/? I/amsnl: m2: false, m3: false

12-26 22:43:58.517 11046-11249/? I/amsnl: c: true, w: false, t: false, l: false

12-26 22:43:58.609 967-1315/? I/InputDispatcher: touch process [17888], send to pg

12-26 22:43:58.617 17888-17888/? I/Process: Sending signal. PID: 17888 SIG: 9

12-26 22:43:58.619 2375-2391/? I/PgedBinderListener: kstate callback type:8 value1=17888 value2=KILLED

12-26 22:43:58.628 967-5955/? W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.huawei.lcagent.client.LogCollectManager.getUserType()' on a null object reference

12-26 22:43:58.629 967-5955/? W/System.err:     at com.android.server.util.ReportTools.getUserType(ReportTools.java:86)

12-26 22:43:58.629 967-5955/? W/System.err:     at com.android.server.util.ReportTools.isBetaUser(ReportTools.java:73)

12-26 22:43:58.629 967-5955/? W/System.err:     at com.android.server.util.ReportTools.report(ReportTools.java:58)

12-26 22:43:58.629 967-5955/? W/System.err:     at com.android.server.util.HwUserBehaviourRecord.appExitRecordInnerImpl(HwUserBehaviourRecord.java:125)

12-26 22:43:58.629 967-5955/? W/System.err:     at com.android.server.util.HwUserBehaviourRecord.access$200(HwUserBehaviourRecord.java:32)

12-26 22:43:58.629 967-5955/? W/System.err:     at com.android.server.util.HwUserBehaviourRecord$AsyUploadLooperThread$1.handleMessage(HwUserBehaviourRecord.java:255)

12-26 22:43:58.629 967-5955/? W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)

12-26 22:43:58.629 967-5955/? W/System.err:     at android.os.Looper.loop(Looper.java:150)

12-26 22:43:58.629 967-5955/? W/System.err:     at com.android.server.util.HwUserBehaviourRecord$AsyUploadLooperThread.run(HwUserBehaviourRecord.java:267)


0
#2c5812回复于2016-12

您好,我怀疑是so集成问题,请确保libs下只集成armeabi一个目录

0
TOP
切换版块